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

Unified Diff: chrome/browser/ui/passwords/manage_passwords_ui_controller.cc

Issue 1162583003: Credential Management: Rename 'LocalCredential' to 'PasswordCredential' (2/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@drop
Patch Set: Fix. Created 5 years, 7 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: chrome/browser/ui/passwords/manage_passwords_ui_controller.cc
diff --git a/chrome/browser/ui/passwords/manage_passwords_ui_controller.cc b/chrome/browser/ui/passwords/manage_passwords_ui_controller.cc
index b5c95902d2820cc498950a2bf2b6f897203868b2..101db294939991d723b0f3a1390a57e464263278 100644
--- a/chrome/browser/ui/passwords/manage_passwords_ui_controller.cc
+++ b/chrome/browser/ui/passwords/manage_passwords_ui_controller.cc
@@ -218,16 +218,16 @@ void ManagePasswordsUIController::ChooseCredential(
// a FederatedCredential in order to prevent password information leaking
// cross-origin.
//
- // If |credential_type| is local, the credential MIGHT be a LocalCredential
+ // If |credential_type| is local, the credential MIGHT be a PasswordCredential
// or it MIGHT be a FederatedCredential. We inspect the |federation_url|
// field to determine which we should return.
//
// TODO(mkwst): Clean this up. It is confusing.
password_manager::CredentialType type_to_return;
if (credential_type ==
- password_manager::CredentialType::CREDENTIAL_TYPE_LOCAL &&
+ password_manager::CredentialType::CREDENTIAL_TYPE_PASSWORD &&
form.federation_url.is_empty()) {
- type_to_return = password_manager::CredentialType::CREDENTIAL_TYPE_LOCAL;
+ type_to_return = password_manager::CredentialType::CREDENTIAL_TYPE_PASSWORD;
} else if (credential_type ==
password_manager::CredentialType::CREDENTIAL_TYPE_EMPTY) {
type_to_return = password_manager::CredentialType::CREDENTIAL_TYPE_EMPTY;

Powered by Google App Engine
This is Rietveld 408576698