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

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: 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
« no previous file with comments | « chrome/browser/autofill/DEPS ('k') | chrome/browser/autofill/autocomplete_history_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 bfa95061f00e21cc2534bede4ec97cbea25e229b..1028753235e982b92a703a060051c1f0e750b0df 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_;
« no previous file with comments | « chrome/browser/autofill/DEPS ('k') | chrome/browser/autofill/autocomplete_history_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698