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

Unified Diff: chrome/browser/password_manager/chrome_password_manager_client.cc

Issue 1744513002: [Password Manager] Remove the "manager-for-sync-signin" flags. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/password_manager/chrome_password_manager_client.cc
diff --git a/chrome/browser/password_manager/chrome_password_manager_client.cc b/chrome/browser/password_manager/chrome_password_manager_client.cc
index 3aa46f59cf73d72232666391514f81825f31b086..70799e1964fa19f4dc6cda1a634e86e8d36234f0 100644
--- a/chrome/browser/password_manager/chrome_password_manager_client.cc
+++ b/chrome/browser/password_manager/chrome_password_manager_client.cc
@@ -181,8 +181,6 @@ bool ChromePasswordManagerClient::IsPasswordManagementEnabledForCurrentPage()
if (!entry) {
// TODO(gcasto): Determine if fix for crbug.com/388246 is relevant here.
is_enabled = true;
- } else if (EnabledForSyncSignin()) {
- is_enabled = true;
} else {
// Do not fill nor save password when a user is signing in for sync. This
// is because users need to remember their password if they are syncing as
@@ -599,22 +597,6 @@ bool ChromePasswordManagerClient::IsUpdatePasswordUIEnabled() const {
#endif
}
-bool ChromePasswordManagerClient::EnabledForSyncSignin() {
- base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
- if (command_line->HasSwitch(
- password_manager::switches::kDisableManagerForSyncSignin))
- return false;
-
- if (command_line->HasSwitch(
- password_manager::switches::kEnableManagerForSyncSignin))
- return true;
-
- // Default is enabled.
- std::string group_name =
- base::FieldTrialList::FindFullName("PasswordManagerStateForSyncSignin");
- return group_name != "Disabled";
-}
-
const GURL& ChromePasswordManagerClient::GetMainFrameURL() const {
return web_contents()->GetVisibleURL();
}

Powered by Google App Engine
This is Rietveld 408576698