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

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

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: Rebase on master 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
« no previous file with comments | « components/password_manager/core/common/password_manager_ui.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/password_manager/core/common/password_manager_ui.cc
diff --git a/components/password_manager/core/common/password_manager_ui.cc b/components/password_manager/core/common/password_manager_ui.cc
index c8c2da77552ca3b98c34dd4c70e4b46345c21263..67ec96b81e139757cd612823737b0db9a54e4b5c 100644
--- a/components/password_manager/core/common/password_manager_ui.cc
+++ b/components/password_manager/core/common/password_manager_ui.cc
@@ -14,6 +14,12 @@ bool IsPendingState(State state) {
state == PENDING_PASSWORD_STATE;
}
+bool IsAskSubmitURLState(State state) {
+ return state == ASK_USER_REPORT_URL_STATE ||
+ state == ASK_USER_REPORT_URL_BUBBLE_SHOWN_BEFORE_TRANSITION_STATE ||
+ state == ASK_USER_REPORT_URL_BUBBLE_SHOWN_STATE;
+}
+
bool IsCredentialsState(State state) {
return (state == CREDENTIAL_REQUEST_STATE ||
state == CREDENTIAL_REQUEST_AND_BUBBLE_STATE);
@@ -21,6 +27,7 @@ bool IsCredentialsState(State state) {
bool IsAutomaticDisplayState(State state) {
return state == PENDING_PASSWORD_AND_BUBBLE_STATE ||
+ state == ASK_USER_REPORT_URL_STATE ||
state == CONFIRMATION_STATE ||
state == CREDENTIAL_REQUEST_AND_BUBBLE_STATE;
}
@@ -34,6 +41,8 @@ State GetEndStateForAutomaticState(State state) {
return MANAGE_STATE;
case CREDENTIAL_REQUEST_AND_BUBBLE_STATE:
return CREDENTIAL_REQUEST_STATE;
+ case ASK_USER_REPORT_URL_STATE:
+ return ASK_USER_REPORT_URL_BUBBLE_SHOWN_BEFORE_TRANSITION_STATE;
default:
NOTREACHED();
return INACTIVE_STATE;
« no previous file with comments | « components/password_manager/core/common/password_manager_ui.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698