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

Unified Diff: chrome/browser/ui/autofill/autofill_dialog_view.h

Issue 12091086: [Autofill] Add UMA timing metrics for requestAutocomplete dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase harder Created 7 years, 10 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
Index: chrome/browser/ui/autofill/autofill_dialog_view.h
diff --git a/chrome/browser/ui/autofill/autofill_dialog_view.h b/chrome/browser/ui/autofill/autofill_dialog_view.h
index 8dcea71d9bc4c607f4f3d1bc302c359a09922760..e01046a3af53cb3ed72ee6455df1d70c275a34eb 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_view.h
+++ b/chrome/browser/ui/autofill/autofill_dialog_view.h
@@ -63,6 +63,12 @@ class AutofillDialogView {
// Called when the active suggestions data model changed.
virtual void ModelChanged() = 0;
+ // Simulates the user pressing 'Submit' to accept the dialog.
+ virtual void SubmitForTesting() = 0;
+
+ // Simulates the user pressing 'Cancel' to abort the dialog.
+ virtual void CancelForTesting() = 0;
+
// Factory function to create the dialog (implemented once per view
// implementation). |controller| will own the created dialog.
static AutofillDialogView* Create(AutofillDialogController* controller);

Powered by Google App Engine
This is Rietveld 408576698