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

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

Issue 2376123003: [Sync] Move //components/sync to the syncer namespace. (Closed)
Patch Set: Rebase. 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 sync_driver::SyncService* AwAutofillClient::GetSyncService() { 74 syncer::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 }
181 179
182 void AwAutofillClient::DidFillOrPreviewField( 180 void AwAutofillClient::DidFillOrPreviewField(
183 const base::string16& autofilled_value, 181 const base::string16& autofilled_value,
184 const base::string16& profile_full_name) { 182 const base::string16& profile_full_name) {}
185 }
186 183
187 void AwAutofillClient::OnFirstUserGestureObserved() { 184 void AwAutofillClient::OnFirstUserGestureObserved() {
188 NOTIMPLEMENTED(); 185 NOTIMPLEMENTED();
189 } 186 }
190 187
191 bool AwAutofillClient::IsContextSecure(const GURL& form_origin) { 188 bool AwAutofillClient::IsContextSecure(const GURL& form_origin) {
192 content::SSLStatus ssl_status; 189 content::SSLStatus ssl_status;
193 content::NavigationEntry* navigation_entry = 190 content::NavigationEntry* navigation_entry =
194 web_contents_->GetController().GetLastCommittedEntry(); 191 web_contents_->GetController().GetLastCommittedEntry();
195 if (!navigation_entry) 192 if (!navigation_entry)
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 267
271 void AwAutofillClient::ScanCreditCard(const CreditCardScanCallback& callback) { 268 void AwAutofillClient::ScanCreditCard(const CreditCardScanCallback& callback) {
272 NOTIMPLEMENTED(); 269 NOTIMPLEMENTED();
273 } 270 }
274 271
275 bool RegisterAwAutofillClient(JNIEnv* env) { 272 bool RegisterAwAutofillClient(JNIEnv* env) {
276 return RegisterNativesImpl(env); 273 return RegisterNativesImpl(env);
277 } 274 }
278 275
279 } // namespace android_webview 276 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698