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

Side by Side Diff: android_webview/native/aw_autofill_client.cc

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (Closed)
Patch Set: Created 4 years, 2 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "android_webview/native/aw_autofill_client.h" 5 #include "android_webview/native/aw_autofill_client.h"
6 6
7 #include "android_webview/browser/aw_browser_context.h" 7 #include "android_webview/browser/aw_browser_context.h"
8 #include "android_webview/browser/aw_content_browser_client.h" 8 #include "android_webview/browser/aw_content_browser_client.h"
9 #include "android_webview/browser/aw_form_database_service.h" 9 #include "android_webview/browser/aw_form_database_service.h"
10 #include "android_webview/native/aw_contents.h" 10 #include "android_webview/native/aw_contents.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 bool AwAutofillClient::GetSaveFormData() { 65 bool AwAutofillClient::GetSaveFormData() {
66 return save_form_data_; 66 return save_form_data_;
67 } 67 }
68 68
69 PrefService* AwAutofillClient::GetPrefs() { 69 PrefService* AwAutofillClient::GetPrefs() {
70 return user_prefs::UserPrefs::Get( 70 return user_prefs::UserPrefs::Get(
71 AwContentBrowserClient::GetAwBrowserContext()); 71 AwContentBrowserClient::GetAwBrowserContext());
72 } 72 }
73 73
74 syncer::SyncService* AwAutofillClient::GetSyncService() { 74 sync_driver::SyncService* AwAutofillClient::GetSyncService() {
75 return nullptr; 75 return nullptr;
76 } 76 }
77 77
78 IdentityProvider* AwAutofillClient::GetIdentityProvider() { 78 IdentityProvider* AwAutofillClient::GetIdentityProvider() {
79 return nullptr; 79 return nullptr;
80 } 80 }
81 81
82 rappor::RapporService* AwAutofillClient::GetRapporService() { 82 rappor::RapporService* AwAutofillClient::GetRapporService() {
83 return nullptr; 83 return nullptr;
84 } 84 }
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 delegate_.reset(); 168 delegate_.reset();
169 Java_AwAutofillClient_hideAutofillPopup(env, obj); 169 Java_AwAutofillClient_hideAutofillPopup(env, obj);
170 } 170 }
171 171
172 bool AwAutofillClient::IsAutocompleteEnabled() { 172 bool AwAutofillClient::IsAutocompleteEnabled() {
173 return GetSaveFormData(); 173 return GetSaveFormData();
174 } 174 }
175 175
176 void AwAutofillClient::PropagateAutofillPredictions( 176 void AwAutofillClient::PropagateAutofillPredictions(
177 content::RenderFrameHost* rfh, 177 content::RenderFrameHost* rfh,
178 const std::vector<autofill::FormStructure*>& forms) {} 178 const std::vector<autofill::FormStructure*>& forms) {
179
180 }
179 181
180 void AwAutofillClient::DidFillOrPreviewField( 182 void AwAutofillClient::DidFillOrPreviewField(
181 const base::string16& autofilled_value, 183 const base::string16& autofilled_value,
182 const base::string16& profile_full_name) {} 184 const base::string16& profile_full_name) {
185 }
183 186
184 void AwAutofillClient::OnFirstUserGestureObserved() { 187 void AwAutofillClient::OnFirstUserGestureObserved() {
185 NOTIMPLEMENTED(); 188 NOTIMPLEMENTED();
186 } 189 }
187 190
188 bool AwAutofillClient::IsContextSecure(const GURL& form_origin) { 191 bool AwAutofillClient::IsContextSecure(const GURL& form_origin) {
189 content::SSLStatus ssl_status; 192 content::SSLStatus ssl_status;
190 content::NavigationEntry* navigation_entry = 193 content::NavigationEntry* navigation_entry =
191 web_contents_->GetController().GetLastCommittedEntry(); 194 web_contents_->GetController().GetLastCommittedEntry();
192 if (!navigation_entry) 195 if (!navigation_entry)
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 270
268 void AwAutofillClient::ScanCreditCard(const CreditCardScanCallback& callback) { 271 void AwAutofillClient::ScanCreditCard(const CreditCardScanCallback& callback) {
269 NOTIMPLEMENTED(); 272 NOTIMPLEMENTED();
270 } 273 }
271 274
272 bool RegisterAwAutofillClient(JNIEnv* env) { 275 bool RegisterAwAutofillClient(JNIEnv* env) {
273 return RegisterNativesImpl(env); 276 return RegisterNativesImpl(env);
274 } 277 }
275 278
276 } // namespace android_webview 279 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698