Skip to content

Commit

Permalink
Remove chrome-browser-importer-profile_writer.h.patch
Browse files Browse the repository at this point in the history
This patch could be removed in favour of a chromium_src override that
would add the new AddCreditCard() method into place using the already
existing AddAutofillFormDataEntries() method as leverage.

Resolves brave/brave-browser#14817
  • Loading branch information
mariospr committed Mar 18, 2021
1 parent c655ede commit edccf9c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 19 deletions.
15 changes: 8 additions & 7 deletions chromium_src/chrome/browser/importer/profile_writer.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@

// Extends ProfileWriter by file overriding instead of subclassing because there
// are many places that instantiate it.
#define BRAVE_PROFILE_WRITER_H \
void AddCreditCard(const base::string16& name_on_card, \
const base::string16& expiration_month, \
const base::string16& expiration_year, \
const base::string16& decrypted_card_number, \
const std::string& origin);
#define AddAutofillFormDataEntries \
AddCreditCard(const base::string16& name_on_card, \
const base::string16& expiration_month, \
const base::string16& expiration_year, \
const base::string16& decrypted_card_number, \
const std::string& origin); \
virtual void AddAutofillFormDataEntries

#include "../../../../../chrome/browser/importer/profile_writer.h"

#undef BRAVE_PROFILE_WRITER_H
#undef AddAutofillFormDataEntries

#endif // BRAVE_CHROMIUM_SRC_CHROME_BROWSER_IMPORTER_PROFILE_WRITER_H_
12 changes: 0 additions & 12 deletions patches/chrome-browser-importer-profile_writer.h.patch

This file was deleted.

0 comments on commit edccf9c

Please sign in to comment.