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

Unified Diff: chrome/browser/android/password_ui_view_android.cc

Issue 682133003: [Password Manager] Add link to remotely manage passowrds on desktop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments Created 6 years, 2 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 | « chrome/browser/about_flags.cc ('k') | chrome/browser/resources/options/autofill_options.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/password_ui_view_android.cc
diff --git a/chrome/browser/android/password_ui_view_android.cc b/chrome/browser/android/password_ui_view_android.cc
index bb3cb5efc8943ac6246bfbf2426dabb9edfa55a5..e657bc6e4751be3170c46484e6eda2e01dbe334a 100644
--- a/chrome/browser/android/password_ui_view_android.cc
+++ b/chrome/browser/android/password_ui_view_android.cc
@@ -11,6 +11,7 @@
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/common/url_constants.h"
#include "components/autofill/core/common/password_form.h"
+#include "components/password_manager/core/common/experiments.h"
#include "components/password_manager/core/common/password_manager_switches.h"
#include "jni/PasswordUIView_jni.h"
@@ -104,21 +105,7 @@ jstring GetAccountDashboardURL(JNIEnv* env, jclass) {
static jboolean ShouldDisplayManageAccountLink(
JNIEnv* env, jclass) {
- std::string group_name =
- base::FieldTrialList::FindFullName("AndroidPasswordLinkInSettings");
-
- CommandLine* command_line = CommandLine::ForCurrentProcess();
- if (command_line->HasSwitch(
- password_manager::switches::kDisableAndroidPasswordLink)) {
- return false;
- }
-
- if (command_line->HasSwitch(
- password_manager::switches::kEnableAndroidPasswordLink)) {
- return true;
- }
-
- return group_name == "Enabled";
+ return password_manager::ManageAccountLinkExperimentEnabled();
}
// static
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/resources/options/autofill_options.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698