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

Unified Diff: components/autofill/core/browser/autofill_download.h

Issue 49303005: Parameterize the PrefService that AutofillDownloadManager uses. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove extraneous diff Created 7 years, 1 month 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: components/autofill/core/browser/autofill_download.h
diff --git a/components/autofill/core/browser/autofill_download.h b/components/autofill/core/browser/autofill_download.h
index bba1d7197629883d732c07f2c56620984c8faee2..23d2fad7affd58e3e6598ef80bae2036751673e3 100644
--- a/components/autofill/core/browser/autofill_download.h
+++ b/components/autofill/core/browser/autofill_download.h
@@ -18,6 +18,8 @@
#include "components/autofill/core/browser/autofill_type.h"
#include "net/url_request/url_fetcher_delegate.h"
+class PrefService;
+
namespace content {
class BrowserContext;
} // namespace content
@@ -62,8 +64,10 @@ class AutofillDownloadManager : public net::URLFetcherDelegate {
virtual ~Observer() {}
};
+ // |context| and |pref_service| must outlive this instance.
// |observer| - observer to notify on successful completion or error.
AutofillDownloadManager(content::BrowserContext* context,
+ PrefService* pref_service,
Observer* observer);
virtual ~AutofillDownloadManager();
@@ -136,6 +140,10 @@ class AutofillDownloadManager : public net::URLFetcherDelegate {
// constructor. Must not be null.
content::BrowserContext* const browser_context_; // WEAK
+ // The pointer value is const, so this can only be set in the
+ // constructor. Must not be null, and must outlive this instance.
Ilya Sherman 2013/11/05 00:17:04 nit: No need to document what "const" means -- tha
blundell 2013/11/05 15:26:54 Done.
+ PrefService* const pref_service_; // 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.

Powered by Google App Engine
This is Rietveld 408576698