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

Unified Diff: components/autofill/content/renderer/password_generation_agent.h

Issue 447873004: [Password Generation] Wait longer to dismiss suggestion UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments Created 6 years, 4 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: components/autofill/content/renderer/password_generation_agent.h
diff --git a/components/autofill/content/renderer/password_generation_agent.h b/components/autofill/content/renderer/password_generation_agent.h
index bf632aef9f6c59078bafc908147647cd8ea27e6c..2d75af0376d36170c0bbedf8abe908de4089f279 100644
--- a/components/autofill/content/renderer/password_generation_agent.h
+++ b/components/autofill/content/renderer/password_generation_agent.h
@@ -39,6 +39,9 @@ class PasswordGenerationAgent : public content::RenderViewObserver {
// Returns true if the newly focused node caused the generation UI to show.
bool FocusedNodeHasChanged(const blink::WebNode& node);
+ // The length that a password can be before the UI is hidden.
+ static const size_t kMaximumOfferSize = 5;
+
protected:
// Returns true if this document is one that we should consider analyzing.
// Virtual so that it can be overriden during testing.

Powered by Google App Engine
This is Rietveld 408576698