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

Unified Diff: components/autofill/browser/autocomplete_history_manager.cc

Issue 13928035: WIP Component build of autofill Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make windows compiling Created 7 years, 8 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: components/autofill/browser/autocomplete_history_manager.cc
diff --git a/components/autofill/browser/autocomplete_history_manager.cc b/components/autofill/browser/autocomplete_history_manager.cc
index e1681ba075ddecae37bdec48d3d597fdf8c1279b..38907cda8d09a4108f4f14ac6f77975fb013a950 100644
--- a/components/autofill/browser/autocomplete_history_manager.cc
+++ b/components/autofill/browser/autocomplete_history_manager.cc
@@ -109,11 +109,11 @@ bool IsTextField(const FormFieldData& field) {
} // namespace
AutocompleteHistoryManager::AutocompleteHistoryManager(
- WebContents* web_contents)
+ WebContents* web_contents,
+ scoped_refptr<AutofillWebDataService> autofill_data)
: content::WebContentsObserver(web_contents),
browser_context_(web_contents->GetBrowserContext()),
- autofill_data_(
- AutofillWebDataService::FromBrowserContext(browser_context_)),
+ autofill_data_(autofill_data),
pending_query_handle_(0),
query_id_(0),
external_delegate_(NULL) {

Powered by Google App Engine
This is Rietveld 408576698