Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(846)

Unified Diff: components/autofill/core/browser/personal_data_manager.h

Issue 964563002: Replace SetAuthenticatedUsername with SetAuthenticatedAccountId. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@priv
Patch Set: rebased Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/autofill/core/browser/personal_data_manager.h
diff --git a/components/autofill/core/browser/personal_data_manager.h b/components/autofill/core/browser/personal_data_manager.h
index 4d2f7120df6a66d2f0edae6017f237834f4b1c78..91f92769a1419b1196f19a437450c5c7c324252d 100644
--- a/components/autofill/core/browser/personal_data_manager.h
+++ b/components/autofill/core/browser/personal_data_manager.h
@@ -26,6 +26,7 @@
class Browser;
class PrefService;
class RemoveAutofillTester;
+class AccountTrackerService;
namespace autofill {
class AutofillInteractiveTest;
@@ -58,6 +59,7 @@ class PersonalDataManager : public KeyedService,
// context.
void Init(scoped_refptr<AutofillWebDataService> database,
PrefService* pref_service,
+ AccountTrackerService* account_tracker,
bool is_off_the_record);
// WebDataServiceConsumer:
@@ -309,6 +311,10 @@ class PersonalDataManager : public KeyedService,
database_ = database;
}
+ void set_account_tracker(AccountTrackerService* account_tracker) {
+ account_tracker_ = account_tracker;
+ }
+
// The backing database that this PersonalDataManager uses.
scoped_refptr<AutofillWebDataService> database_;
@@ -372,6 +378,10 @@ class PersonalDataManager : public KeyedService,
// The PrefService that this instance uses. Must outlive this instance.
PrefService* pref_service_;
+ // The AccountTrackerService that this instance uses. Must outlive this
+ // instance.
+ AccountTrackerService* account_tracker_;
+
// Whether the user is currently operating in an off-the-record context.
// Default value is false.
bool is_off_the_record_;

Powered by Google App Engine
This is Rietveld 408576698