Index: chrome/browser/ui/autofill/autofill_dialog_controller_impl.h |
diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h |
index 0d86fa939a3a8d89f3f0832ce6806cddac33e7d6..b6c49c9cbb67e6196dea4578b5f51edb400ed7fa 100644 |
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h |
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h |
@@ -10,6 +10,9 @@ |
#include "base/callback.h" |
#include "base/memory/scoped_ptr.h" |
#include "base/string16.h" |
+#include "base/time.h" |
+#include "chrome/browser/autofill/autofill_manager_delegate.h" |
+#include "chrome/browser/autofill/autofill_metrics.h" |
#include "chrome/browser/autofill/field_types.h" |
#include "chrome/browser/autofill/form_structure.h" |
#include "chrome/browser/autofill/personal_data_manager.h" |
@@ -52,6 +55,8 @@ class AutofillDialogControllerImpl : public AutofillDialogController, |
const FormData& form_structure, |
const GURL& source_url, |
const content::SSLStatus& ssl_status, |
+ const AutofillMetrics& metric_logger, |
+ const DialogRequester requester, |
const base::Callback<void(const FormStructure*)>& callback); |
virtual ~AutofillDialogControllerImpl(); |
@@ -139,6 +144,10 @@ class AutofillDialogControllerImpl : public AutofillDialogController, |
// be in [0.0, 1.0]. |
void UpdateProgressBar(double value); |
+ protected: |
+ // Exposed for testing. |
+ AutofillDialogView* view() { return view_.get(); } |
+ |
private: |
// Determines whether |input| and |field| match. |
typedef base::Callback<bool(const DetailInput& input, |
@@ -267,6 +276,11 @@ class AutofillDialogControllerImpl : public AutofillDialogController, |
// A NotificationRegistrar for tracking the completion of sign-in. |
content::NotificationRegistrar registrar_; |
+ // For logging UMA metrics. |
+ const base::Time dialog_shown_timestamp_; |
+ const AutofillMetrics& metric_logger_; |
+ DialogRequester requester_; |
+ |
DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); |
}; |