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

Unified Diff: chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc

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/tab_autofill_manager_delegate.cc
diff --git a/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc b/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
index 0058facbbe257baa31c614acb4b85d5142444d7d..c34f1a543018997c0feff4c1dd2f1dfd6e6d3941 100644
--- a/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
+++ b/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
@@ -22,7 +22,9 @@
#include "content/public/common/password_form.h"
#include "ui/gfx/rect.h"
-DEFINE_WEB_CONTENTS_USER_DATA_KEY(TabAutofillManagerDelegate);
+DEFINE_WEB_CONTENTS_USER_DATA_KEY(autofill::TabAutofillManagerDelegate);
+
+namespace autofill {
TabAutofillManagerDelegate::TabAutofillManagerDelegate(
content::WebContents* web_contents)
@@ -97,6 +99,8 @@ void TabAutofillManagerDelegate::ShowRequestAutocompleteDialog(
const FormData& form,
const GURL& source_url,
const content::SSLStatus& ssl_status,
+ const AutofillMetrics& metric_logger,
+ DialogType dialog_type,
const base::Callback<void(const FormStructure*)>& callback) {
HideRequestAutocompleteDialog();
@@ -105,6 +109,8 @@ void TabAutofillManagerDelegate::ShowRequestAutocompleteDialog(
form,
source_url,
ssl_status,
+ metric_logger,
+ dialog_type,
callback);
autofill_dialog_controller_->Show();
}
@@ -130,3 +136,5 @@ void TabAutofillManagerDelegate::DidNavigateMainFrame(
// through the autocheckout flow (when the behavior is more fleshed out).
HideRequestAutocompleteDialog();
}
+
+} // namespace autofill
« no previous file with comments | « chrome/browser/ui/autofill/tab_autofill_manager_delegate.h ('k') | chrome/browser/ui/browser_tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698