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

Side by Side Diff: chrome/browser/ui/android/autofill/autofill_dialog_view_android.cc

Issue 13625002: Change the behavior of the [X] Save details to Wallet checkbox notification to: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "chrome/browser/ui/android/autofill/autofill_dialog_view_android.h" 5 #include "chrome/browser/ui/android/autofill/autofill_dialog_view_android.h"
6 #include "base/android/jni_android.h" 6 #include "base/android/jni_android.h"
7 #include "base/android/jni_array.h" 7 #include "base/android/jni_array.h"
8 #include "base/android/jni_string.h" 8 #include "base/android/jni_string.h"
9 #include "base/android/scoped_java_ref.h" 9 #include "base/android/scoped_java_ref.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 Java_AutofillDialogGlue_getCvc(env, java_object_.obj()); 203 Java_AutofillDialogGlue_getCvc(env, java_object_.obj());
204 return base::android::ConvertJavaStringToUTF16(env, cvc.obj()); 204 return base::android::ConvertJavaStringToUTF16(env, cvc.obj());
205 } 205 }
206 206
207 bool AutofillDialogViewAndroid::UseBillingForShipping() { 207 bool AutofillDialogViewAndroid::UseBillingForShipping() {
208 JNIEnv* env = base::android::AttachCurrentThread(); 208 JNIEnv* env = base::android::AttachCurrentThread();
209 return Java_AutofillDialogGlue_shouldUseBillingForShipping( 209 return Java_AutofillDialogGlue_shouldUseBillingForShipping(
210 env, java_object_.obj()); 210 env, java_object_.obj());
211 } 211 }
212 212
213 bool AutofillDialogViewAndroid::SaveDetailsInWallet() {
214 JNIEnv* env = base::android::AttachCurrentThread();
215 return Java_AutofillDialogGlue_shouldSaveDetailsInWallet(env,
216 java_object_.obj());
217 }
218
219 bool AutofillDialogViewAndroid::SaveDetailsLocally() { 213 bool AutofillDialogViewAndroid::SaveDetailsLocally() {
220 JNIEnv* env = base::android::AttachCurrentThread(); 214 JNIEnv* env = base::android::AttachCurrentThread();
221 return Java_AutofillDialogGlue_shouldSaveDetailsLocally(env, 215 return Java_AutofillDialogGlue_shouldSaveDetailsLocally(env,
222 java_object_.obj()); 216 java_object_.obj());
223 } 217 }
224 218
225 const content::NavigationController* AutofillDialogViewAndroid::ShowSignIn() { 219 const content::NavigationController* AutofillDialogViewAndroid::ShowSignIn() {
226 NOTIMPLEMENTED(); 220 NOTIMPLEMENTED();
227 return NULL; 221 return NULL;
228 } 222 }
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 env, error_array.obj(), i, invalid_inputs[i], error_text.obj()); 440 env, error_array.obj(), i, invalid_inputs[i], error_text.obj());
447 } 441 }
448 Java_AutofillDialogGlue_updateSectionErrors(env, 442 Java_AutofillDialogGlue_updateSectionErrors(env,
449 java_object_.obj(), 443 java_object_.obj(),
450 section, 444 section,
451 error_array.obj()); 445 error_array.obj());
452 return false; 446 return false;
453 } 447 }
454 448
455 } // namespace autofill 449 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698