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

Unified Diff: components/password_manager/core/browser/password_form_manager.h

Issue 2250133003: Simplify PasswordFormManagerState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@621355_automate_FetchDataFromPasswordStore
Patch Set: Just rebased Created 4 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
« no previous file with comments | « no previous file | components/password_manager/core/browser/password_form_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/password_manager/core/browser/password_form_manager.h
diff --git a/components/password_manager/core/browser/password_form_manager.h b/components/password_manager/core/browser/password_form_manager.h
index f201bf91ca9af38325e050c913b1f8c24fdc5774..82c985465aa22ccc359388567d7ef93da976a8c2 100644
--- a/components/password_manager/core/browser/password_form_manager.h
+++ b/components/password_manager/core/browser/password_form_manager.h
@@ -324,6 +324,9 @@ class PasswordFormManager : public PasswordStoreConsumer {
kFoundGenerationElement
};
+ // State of waiting for a response from a PasswordStore.
+ enum class State { NOT_WAITING, WAITING };
dvadym 2016/08/18 09:06:50 Oh, good to know, I didn't know that it's already
vabr (Chromium) 2016/08/18 09:27:24 Yes, https://chromium-cpp.appspot.com/ has been al
+
// The maximum number of combinations of the three preceding enums.
// This is used when recording the actions taken by the form in UMA.
static const int kMaxNumActionsTaken =
@@ -575,19 +578,10 @@ class PasswordFormManager : public PasswordStoreConsumer {
// local heuristics.
bool does_look_like_signup_form_ = false;
- typedef enum {
- PRE_MATCHING_PHASE, // Have not yet invoked a GetLogins query to find
- // matching login information from password store.
- MATCHING_PHASE, // We've made a GetLogins request, but
- // haven't received or finished processing result.
- POST_MATCHING_PHASE // We've queried the DB and processed matching
- // login results.
- } PasswordFormManagerState;
-
// State of matching process, used to verify that we don't call methods
// assuming we've already processed the request for matching logins,
// when we actually haven't.
- PasswordFormManagerState state_;
+ State state_;
// The client which implements embedder-specific PasswordManager operations.
PasswordManagerClient* client_;
« no previous file with comments | « no previous file | components/password_manager/core/browser/password_form_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698