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

Unified Diff: chrome/browser/autofill/autofill_download.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/autofill_common_test.cc ('k') | chrome/browser/autofill/autofill_download.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_download.h
diff --git a/chrome/browser/autofill/autofill_download.h b/chrome/browser/autofill/autofill_download.h
index d119f50e8e5f9a131d7b7e864f694b465205e523..cb02e008fcced886e30469f91995ae47a6edaf8e 100644
--- a/chrome/browser/autofill/autofill_download.h
+++ b/chrome/browser/autofill/autofill_download.h
@@ -20,7 +20,10 @@
class AutofillMetrics;
class FormStructure;
-class Profile;
+
+namespace content {
+class BrowserContext;
+} // namespace content
namespace net {
class URLFetcher;
@@ -58,7 +61,8 @@ class AutofillDownloadManager : public net::URLFetcherDelegate {
};
// |observer| - observer to notify on successful completion or error.
- AutofillDownloadManager(Profile* profile, Observer* observer);
+ AutofillDownloadManager(content::BrowserContext* context,
+ Observer* observer);
virtual ~AutofillDownloadManager();
// Starts a query request to Autofill servers. The observer is called with the
@@ -124,9 +128,10 @@ class AutofillDownloadManager : public net::URLFetcherDelegate {
void SetPositiveUploadRate(double rate);
void SetNegativeUploadRate(double rate);
- // Profile for preference storage. The pointer value is const, so this can
- // only be set in the constructor. Must not be null.
- Profile* const profile_; // WEAK
+ // The pointer value is const, so this can only be set in the
+ // constructor. Must not be null.
+ content::BrowserContext* const browser_context_; // WEAK
+
// The observer to notify when server predictions are successfully received.
// The pointer value is const, so this can only be set in the constructor.
// Must not be null.
« no previous file with comments | « chrome/browser/autofill/autofill_common_test.cc ('k') | chrome/browser/autofill/autofill_download.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698