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

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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 Java_AutofillDialogGlue_getCvc(env, java_object_.obj()); 200 Java_AutofillDialogGlue_getCvc(env, java_object_.obj());
201 return base::android::ConvertJavaStringToUTF16(env, cvc.obj()); 201 return base::android::ConvertJavaStringToUTF16(env, cvc.obj());
202 } 202 }
203 203
204 bool AutofillDialogViewAndroid::UseBillingForShipping() { 204 bool AutofillDialogViewAndroid::UseBillingForShipping() {
205 JNIEnv* env = base::android::AttachCurrentThread(); 205 JNIEnv* env = base::android::AttachCurrentThread();
206 return Java_AutofillDialogGlue_shouldUseBillingForShipping( 206 return Java_AutofillDialogGlue_shouldUseBillingForShipping(
207 env, java_object_.obj()); 207 env, java_object_.obj());
208 } 208 }
209 209
210 bool AutofillDialogViewAndroid::SaveDetailsInWallet() {
211 JNIEnv* env = base::android::AttachCurrentThread();
212 return Java_AutofillDialogGlue_shouldSaveDetailsInWallet(env,
213 java_object_.obj());
214 }
215
216 bool AutofillDialogViewAndroid::SaveDetailsLocally() { 210 bool AutofillDialogViewAndroid::SaveDetailsLocally() {
217 JNIEnv* env = base::android::AttachCurrentThread(); 211 JNIEnv* env = base::android::AttachCurrentThread();
218 return Java_AutofillDialogGlue_shouldSaveDetailsLocally(env, 212 return Java_AutofillDialogGlue_shouldSaveDetailsLocally(env,
219 java_object_.obj()); 213 java_object_.obj());
220 } 214 }
221 215
222 const content::NavigationController* AutofillDialogViewAndroid::ShowSignIn() { 216 const content::NavigationController* AutofillDialogViewAndroid::ShowSignIn() {
223 NOTIMPLEMENTED(); 217 NOTIMPLEMENTED();
224 return NULL; 218 return NULL;
225 } 219 }
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 env, error_array.obj(), i, invalid_inputs[i], error_text.obj()); 437 env, error_array.obj(), i, invalid_inputs[i], error_text.obj());
444 } 438 }
445 Java_AutofillDialogGlue_updateSectionErrors(env, 439 Java_AutofillDialogGlue_updateSectionErrors(env,
446 java_object_.obj(), 440 java_object_.obj(),
447 section, 441 section,
448 error_array.obj()); 442 error_array.obj());
449 return false; 443 return false;
450 } 444 }
451 445
452 } // namespace autofill 446 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698