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

Unified Diff: chrome/browser/about_flags.cc

Issue 517713002: [Android] Add enhanced bookmark opt-in flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/about_flags.cc
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 09f8bcc4cef0d00f50b3e9cf0424ed6250b4311e..5582c096c02605bc2fd8231d06fd2661a2989cb1 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -2006,6 +2006,10 @@ void GetSanitizedEnabledFlags(
bool SkipConditionalExperiment(const Experiment& experiment) {
if (experiment.internal_name ==
std::string("enhanced-bookmarks-experiment")) {
+#if defined(OS_ANDROID)
+ // On Android, user can opt in.
+ return false;
+#else
CommandLine* command_line = CommandLine::ForCurrentProcess();
// Dont't skip experiment if it has non default value.
// It means user selected it.
@@ -2013,7 +2017,9 @@ bool SkipConditionalExperiment(const Experiment& experiment) {
return false;
return !IsEnhancedBookmarksExperimentEnabled();
Nico 2014/09/04 18:35:25 Why is this code needed?
Kibeom Kim (inactive) 2014/09/04 18:40:49 For desktop, we enable the experiment by chrome sy
Nico 2014/09/04 18:42:28 The way this is usually done is to have a "Enable
+#endif
}
+
if ((experiment.internal_name == std::string("manual-enhanced-bookmarks")) ||
(experiment.internal_name ==
std::string("manual-enhanced-bookmarks-optout"))) {
« no previous file with comments | « no previous file | chrome/browser/bookmarks/enhanced_bookmarks_features.cc » ('j') | chrome/browser/chrome_browser_main_android.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698