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

Side by Side Diff: android_webview/browser/aw_autofill_external_delegate.cc

Issue 15097004: Enable Autocomplete feature for chromium webview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@setSaveFormData2
Patch Set: make personal_data_ optional Created 7 years, 7 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "android_webview/browser/aw_autofill_external_delegate.h"
6
7 #include "android_webview/browser/aw_autofill_manager_delegate.h"
8 #include "components/autofill/browser/autofill_manager.h"
9 #include "content/public/browser/web_contents.h"
10
11 using autofill::AutofillManager;
12
13 namespace android_webview {
14
15 void AwAutofillExternalDelegate::CreateForWebContentsAndManager(
16 content::WebContents* web_contents,
17 AutofillManager* autofill_manager) {
18 if (FromWebContents(web_contents))
benm (inactive) 2013/05/23 12:02:21 DCHECK?
sgurun-gerrit only 2013/05/23 17:10:01 Done.
19 return;
20
21 web_contents->SetUserData(
22 UserDataKey(),
23 new AwAutofillExternalDelegate(web_contents, autofill_manager));
24 }
25
26 AwAutofillExternalDelegate::AwAutofillExternalDelegate(
27 content::WebContents* web_contents,
28 AutofillManager* autofill_manager)
29 : autofill::AutofillExternalDelegate(web_contents, autofill_manager) {
30 }
31
32 AwAutofillExternalDelegate::~AwAutofillExternalDelegate() {}
33
34 bool AwAutofillExternalDelegate::ShouldIgnoreFormData() {
35 return !AwAutofillManagerDelegate::FromWebContents(web_contents())->
36 GetSaveFormData();
37 }
38
39 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698