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

Side by Side Diff: components/autofill/core/browser/autofill_external_delegate.cc

Issue 79103002: Abstracted AcceptPasswordAutofillSuggestion IPC out of core Autofill code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/autofill/core/browser/autofill_external_delegate.h" 5 #include "components/autofill/core/browser/autofill_external_delegate.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "components/autofill/core/browser/autocomplete_history_manager.h" 8 #include "components/autofill/core/browser/autocomplete_history_manager.h"
9 #include "components/autofill/core/browser/autofill_driver.h" 9 #include "components/autofill/core/browser/autofill_driver.h"
10 #include "components/autofill/core/browser/autofill_manager.h" 10 #include "components/autofill/core/browser/autofill_manager.h"
11 #include "content/public/browser/web_contents.h" 11 #include "content/public/browser/web_contents.h"
12 #include "grit/component_strings.h" 12 #include "grit/component_strings.h"
13 #include "third_party/WebKit/public/web/WebAutofillClient.h" 13 #include "third_party/WebKit/public/web/WebAutofillClient.h"
14 #include "ui/base/l10n/l10n_util.h" 14 #include "ui/base/l10n/l10n_util.h"
15 15
16 using blink::WebAutofillClient; 16 using blink::WebAutofillClient;
17 17
18 namespace autofill { 18 namespace autofill {
19 19
20 AutofillExternalDelegate::AutofillExternalDelegate( 20 AutofillExternalDelegate::AutofillExternalDelegate(
21 content::WebContents* web_contents, 21 content::WebContents* web_contents,
Ilya Sherman 2013/11/21 10:31:56 Can this parameter be removed now? Or are you lea
jif-google 2013/11/21 16:46:02 Yes.
22 AutofillManager* autofill_manager, 22 AutofillManager* autofill_manager,
23 AutofillDriver* autofill_driver) 23 AutofillDriver* autofill_driver)
24 : autofill_manager_(autofill_manager), 24 : autofill_manager_(autofill_manager),
25 autofill_driver_(autofill_driver), 25 autofill_driver_(autofill_driver),
26 password_autofill_manager_(web_contents), 26 password_autofill_manager_(autofill_driver),
27 autofill_query_id_(0), 27 autofill_query_id_(0),
28 display_warning_if_disabled_(false), 28 display_warning_if_disabled_(false),
29 has_autofill_suggestion_(false), 29 has_autofill_suggestion_(false),
30 has_shown_autofill_popup_for_current_edit_(false), 30 has_shown_autofill_popup_for_current_edit_(false),
31 weak_ptr_factory_(this) { 31 weak_ptr_factory_(this) {
32 DCHECK(autofill_manager); 32 DCHECK(autofill_manager);
33 } 33 }
34 34
35 AutofillExternalDelegate::~AutofillExternalDelegate() {} 35 AutofillExternalDelegate::~AutofillExternalDelegate() {}
36 36
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 // Set the values that all datalist elements share. 351 // Set the values that all datalist elements share.
352 autofill_icons->insert(autofill_icons->begin(), 352 autofill_icons->insert(autofill_icons->begin(),
353 data_list_values_.size(), 353 data_list_values_.size(),
354 base::string16()); 354 base::string16());
355 autofill_unique_ids->insert(autofill_unique_ids->begin(), 355 autofill_unique_ids->insert(autofill_unique_ids->begin(),
356 data_list_values_.size(), 356 data_list_values_.size(),
357 WebAutofillClient::MenuItemIDDataListEntry); 357 WebAutofillClient::MenuItemIDDataListEntry);
358 } 358 }
359 359
360 } // namespace autofill 360 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698