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

Unified Diff: chrome/browser/autofill/autocomplete_history_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: 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/autocomplete_history_manager.h
diff --git a/chrome/browser/autofill/autocomplete_history_manager.h b/chrome/browser/autofill/autocomplete_history_manager.h
index afdfa8f9e3c608441d27690b83bbeefcd4a64872..07a5e163ba37e0ed4c09e8637808f96bc7505810 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_base.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,
WebDataServiceBase* wds);
void SendSuggestions(const std::vector<string16>* suggestions);
@@ -82,7 +85,7 @@ class AutocompleteHistoryManager : public content::WebContentsObserver,
return AutofillWebData::ForService(web_data_service_.get());
}
- Profile* profile_;
+ content::BrowserContext* browser_context_;
scoped_refptr<WebDataServiceBase> web_data_service_;
BooleanPrefMember autofill_enabled_;

Powered by Google App Engine
This is Rietveld 408576698