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

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

Issue 71683003: Have AutofillManagerDelegate supply the AutofillWebDataService to core code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unittests, respond to reviews 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/autocomplete_history_manager.h
diff --git a/components/autofill/core/browser/autocomplete_history_manager.h b/components/autofill/core/browser/autocomplete_history_manager.h
index 15c2ac625a505c68ecfc2b9b9c2d271fb5b4ba98..b4e97217c054b01d06f5bedd4da06842c18685dd 100644
--- a/components/autofill/core/browser/autocomplete_history_manager.h
+++ b/components/autofill/core/browser/autocomplete_history_manager.h
@@ -12,11 +12,6 @@
#include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
#include "components/webdata/common/web_data_service_consumer.h"
-namespace content {
-class BrowserContext;
-class WebContents;
-}
-
namespace autofill {
class AutofillDriver;
@@ -70,10 +65,9 @@ class AutocompleteHistoryManager : public WebDataServiceConsumer {
// Cancels the currently pending WebDataService query, if there is one.
void CancelPendingQuery();
- content::BrowserContext* browser_context_;
// Provides driver-level context. Must outlive this object.
AutofillDriver* driver_;
- scoped_refptr<AutofillWebDataService> autofill_data_;
+ scoped_refptr<AutofillWebDataService> database_;
// When the manager makes a request from WebDataServiceBase, the database is
// queried on another thread, we record the query handle until we get called

Powered by Google App Engine
This is Rietveld 408576698