diff options
author | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-13 20:27:03 +0000 |
---|---|---|
committer | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-13 20:27:03 +0000 |
commit | 6bb2d378c1055e87cc53b4bef1de9ce14fd1a6a8 (patch) | |
tree | 3993b7a63cae3b029f071e5d1779206b3ae20ebc /chrome/browser/autofill/autocomplete_history_manager.h | |
parent | b01b30641643b4d4f2ddb35e4c6e3f52418737d2 (diff) | |
download | chromium_src-6bb2d378c1055e87cc53b4bef1de9ce14fd1a6a8.zip chromium_src-6bb2d378c1055e87cc53b4bef1de9ce14fd1a6a8.tar.gz chromium_src-6bb2d378c1055e87cc53b4bef1de9ce14fd1a6a8.tar.bz2 |
Use BrowserContext as key in API. Switch Autofill to use BC in place of Profile.
All that Autofill needed from Profile, apart from looking up services
keyed on Profile, was stuff already in BrowserContext
e.g. IsIncognitoMode(). Once a base class for ProfileSyncService
migrates to API, we should be able to remove the profile.h includes in
Autofill.
TBR=mechanicalowners@chromium.org
BUG=140037
Review URL: https://chromiumcodereview.appspot.com/10919066
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156620 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/autocomplete_history_manager.h')
-rw-r--r-- | chrome/browser/autofill/autocomplete_history_manager.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/chrome/browser/autofill/autocomplete_history_manager.h b/chrome/browser/autofill/autocomplete_history_manager.h index bfa9506..1028753 100644 --- a/chrome/browser/autofill/autocomplete_history_manager.h +++ b/chrome/browser/autofill/autocomplete_history_manager.h @@ -13,6 +13,10 @@ #include "chrome/browser/api/webdata/web_data_service_consumer.h" #include "content/public/browser/web_contents_observer.h" +namespace content { +class BrowserContext; +} + namespace webkit { namespace forms { struct FormData; @@ -20,7 +24,6 @@ struct FormData; } class AutofillExternalDelegate; -class Profile; // Per-tab Autocomplete history manager. Handles receiving form data // from the renderer and the storing and retrieving of form data @@ -66,7 +69,7 @@ class AutocompleteHistoryManager : public content::WebContentsObserver, // For tests. AutocompleteHistoryManager(content::WebContents* web_contents, - Profile* profile, + content::BrowserContext* context, scoped_ptr<AutofillWebDataService> wds); void SendSuggestions(const std::vector<string16>* suggestions); @@ -78,7 +81,7 @@ class AutocompleteHistoryManager : public content::WebContentsObserver, } private: - Profile* profile_; + content::BrowserContext* browser_context_; scoped_ptr<AutofillWebDataService> autofill_data_; BooleanPrefMember autofill_enabled_; |