From 46e6f178a560036fceb79d2d8de6fd5a2c71370e Mon Sep 17 00:00:00 2001 From: "aruslan@chromium.org" Date: Tue, 30 Apr 2013 22:07:46 +0000 Subject: [PATCH] [rAc Android dialog] Cancelling the editing should reset the manual inputs. BUG=236856 NOTRY=True Review URL: https://chromiumcodereview.appspot.com/14643007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197494 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/ui/android/autofill/autofill_dialog_view_android.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/chrome/browser/ui/android/autofill/autofill_dialog_view_android.cc b/chrome/browser/ui/android/autofill/autofill_dialog_view_android.cc index 12f063c7ebb7..45a663af7b66 100644 --- a/chrome/browser/ui/android/autofill/autofill_dialog_view_android.cc +++ b/chrome/browser/ui/android/autofill/autofill_dialog_view_android.cc @@ -333,8 +333,10 @@ jboolean AutofillDialogViewAndroid::EditingComplete(JNIEnv* env, void AutofillDialogViewAndroid::EditingCancel(JNIEnv* env, jobject obj, - jint section) { - controller_->EditCancelledForSection(static_cast(section)); + jint jsection) { + const DialogSection section = static_cast(jsection); + controller_->EditCancelledForSection(section); + UpdateSection(section); } ScopedJavaLocalRef AutofillDialogViewAndroid::ValidateField( -- 2.11.4.GIT