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

Unified Diff: chrome/browser/ui/android/autofill/autofill_dialog_view_android.cc

Issue 14643007: [rAc Android dialog] Cancelling the editing should reset the manual inputs. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/android/autofill/autofill_dialog_view_android.cc
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 12f063c7ebb785c5d17287b3d05eb1b8ecba94ff..45a663af7b66e47bbe8abeb80f62a498a6d6cc40 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<DialogSection>(section));
+ jint jsection) {
+ const DialogSection section = static_cast<DialogSection>(jsection);
+ controller_->EditCancelledForSection(section);
+ UpdateSection(section);
}
ScopedJavaLocalRef<jstring> AutofillDialogViewAndroid::ValidateField(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698