| Index: components/autofill/browser/personal_data_manager.h
|
| diff --git a/components/autofill/browser/personal_data_manager.h b/components/autofill/browser/personal_data_manager.h
|
| index 1c25d38ba65d6beb62bffd5d0dfde4f20927bfdd..700c950cae47df3e85c6d8c54fbfa0e8c702feca 100644
|
| --- a/components/autofill/browser/personal_data_manager.h
|
| +++ b/components/autofill/browser/personal_data_manager.h
|
| @@ -40,11 +40,14 @@ void SetCreditCards(int, std::vector<autofill::CreditCard>*);
|
|
|
| namespace autofill {
|
|
|
| +class AutofillWebDataService;
|
| +
|
| // 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.
|
| -class PersonalDataManager : public WebDataServiceConsumer,
|
| - public AutofillWebDataServiceObserverOnUIThread {
|
| +class AUTOFILL_EXPORT PersonalDataManager
|
| + : public WebDataServiceConsumer,
|
| + public AutofillWebDataServiceObserverOnUIThread {
|
| public:
|
| // A pair of GUID and variant index. Represents a single FormGroup and a
|
| // specific data variant.
|
| @@ -54,7 +57,8 @@ class PersonalDataManager : public WebDataServiceConsumer,
|
| virtual ~PersonalDataManager();
|
|
|
| // Kicks off asynchronous loading of profiles and credit cards.
|
| - void Init(content::BrowserContext* context);
|
| + void Init(content::BrowserContext* context,
|
| + AutofillWebDataService* autofill_webdata);
|
|
|
| // WebDataServiceConsumer:
|
| virtual void OnWebDataServiceRequestDone(
|
| @@ -277,6 +281,8 @@ class PersonalDataManager : public WebDataServiceConsumer,
|
| private:
|
| std::string app_locale_;
|
|
|
| + scoped_refptr<AutofillWebDataService> autofill_webdata_;
|
| +
|
| // For logging UMA metrics. Overridden by metrics tests.
|
| scoped_ptr<const AutofillMetrics> metric_logger_;
|
|
|
|
|