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

Unified Diff: chrome/browser/autofill/personal_data_manager.h

Issue 10919066: Use BrowserContext as key in API. Switch Autofill to use BC in place of Profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to parent Created 8 years, 3 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: chrome/browser/autofill/personal_data_manager.h
diff --git a/chrome/browser/autofill/personal_data_manager.h b/chrome/browser/autofill/personal_data_manager.h
index 46b018116397a40c350a69c7e1b1f5cf49989b3d..8d26f298543b277b28129e4c69644fa052ce32b8 100644
--- a/chrome/browser/autofill/personal_data_manager.h
+++ b/chrome/browser/autofill/personal_data_manager.h
@@ -27,13 +27,16 @@
class AutofillMetrics;
class FormStructure;
class PersonalDataManagerObserver;
-class Profile;
namespace autofill_helper {
void SetProfiles(int, std::vector<AutofillProfile>*);
void SetCreditCards(int, std::vector<CreditCard>*);
}
+namespace content {
+class BrowserContext;
+}
+
// Handles loading and saving Autofill profile information to the web database.
// This class also stores the profiles loaded from the database for use during
// Autofill.
@@ -220,8 +223,8 @@ class PersonalDataManager
const AutofillMetrics* metric_logger() const;
void set_metric_logger(const AutofillMetrics* metric_logger);
- // The profile hosting this PersonalDataManager.
- Profile* profile_;
+ // The browser context this PersonalDataManager is in.
+ content::BrowserContext* browser_context_;
// True if personal data has been loaded from the web database.
bool is_data_loaded_;
@@ -251,7 +254,7 @@ class PersonalDataManager
private:
// Kicks off asynchronous loading of profiles and credit cards.
- void Init(Profile* profile);
+ void Init(content::BrowserContext* context);
// For logging UMA metrics. Overridden by metrics tests.
scoped_ptr<const AutofillMetrics> metric_logger_;
« no previous file with comments | « chrome/browser/autofill/autofill_manager_unittest.cc ('k') | chrome/browser/autofill/personal_data_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698