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

Unified Diff: components/password_manager/core/common/password_manager_ui.h

Issue 765073004: Adding skeleton code for showing Bubble, asking user to submit URL when Password Manager fails (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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/password_manager/core/common/password_manager_ui.h
diff --git a/components/password_manager/core/common/password_manager_ui.h b/components/password_manager/core/common/password_manager_ui.h
index b7adbb4a5c7f52d8a4076609a7d3c0da774732d0..0ba25157fe76ab7d35f23a0d595528bf37ddb2cc 100644
--- a/components/password_manager/core/common/password_manager_ui.h
+++ b/components/password_manager/core/common/password_manager_ui.h
@@ -42,6 +42,13 @@ enum State {
// Credentials are pending, but we don't need to pop up a bubble.
CREDENTIAL_REQUEST_STATE,
+
+ // Password manager failed to detect the form. Now we need to ask user
+ // if he wants to report the URL by showing "Allow to submit URL?" bubble.
+ ASK_SUBMIT_URL_AND_BUBBLE_STATE,
vabr (Chromium) 2014/12/03 14:08:07 The name is unclear ("submit URL and bubble"?). Wh
melandory 2014/12/04 10:33:47 Done.
+
+ // We don't need to pop "Allow to submit URL?" bubble.
+ ASK_SUBMIT_URL_STATE
vabr (Chromium) 2014/12/03 14:08:07 I don't think the comment and the state name expla
melandory 2014/12/04 10:33:47 Done. Also you after you comment I realize that wi
};
// The position of a password item in a list of credentials.
@@ -63,6 +70,8 @@ bool IsCredentialsState(State state);
// interaction.
bool IsAutomaticDisplayState(State state);
+bool IsAskSubmitURLState(State state);
+
// Returns the state that the bubble should be in after the automatic display
// occurs.
State GetEndStateForAutomaticState(State state);

Powered by Google App Engine
This is Rietveld 408576698