Index: chrome/browser/ui/passwords/manage_passwords_ui_controller.h |
diff --git a/chrome/browser/ui/passwords/manage_passwords_ui_controller.h b/chrome/browser/ui/passwords/manage_passwords_ui_controller.h |
index 7e1b67e0a1b8f53e4a6523e3ae46f1f4db8551d1..55dfb2a394b7a56f637f872b03e6498bba3f70ab 100644 |
--- a/chrome/browser/ui/passwords/manage_passwords_ui_controller.h |
+++ b/chrome/browser/ui/passwords/manage_passwords_ui_controller.h |
@@ -6,6 +6,7 @@ |
#define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ |
#include "base/memory/scoped_vector.h" |
+#include "base/timer/elapsed_timer.h" |
#include "components/autofill/core/common/password_form.h" |
#include "components/password_manager/core/browser/password_form_manager.h" |
#include "components/password_manager/core/browser/password_store.h" |
@@ -139,6 +140,11 @@ class ManagePasswordsUIController |
// |password_form_map_|. |
GURL origin_; |
+ // Used to measure the amount of time on a page; if it's less than some |
+ // reasonable limit, then don't close the bubble upon navigation. We create |
+ // (and destroy) the timer in DidNavigateMainFrame. |
+ scoped_ptr<base::ElapsedTimer> timer_; |
+ |
DISALLOW_COPY_AND_ASSIGN(ManagePasswordsUIController); |
}; |