summaryrefslogtreecommitdiffstats
path: root/chrome/browser/bookmarks
diff options
context:
space:
mode:
authorianwen <ianwen@chromium.org>2015-03-16 16:43:33 -0700
committerCommit bot <commit-bot@chromium.org>2015-03-16 23:43:58 +0000
commit0a82fd525d1f4d64ce5f4e1c6a66c1fffd65a3dd (patch)
treedf8a8a232b7621ff1dd205a075763c0754bdc7f9 /chrome/browser/bookmarks
parent5f46d2c4e1da91e38d197e04677e68e12a7eda77 (diff)
downloadchromium_src-0a82fd525d1f4d64ce5f4e1c6a66c1fffd65a3dd.zip
chromium_src-0a82fd525d1f4d64ce5f4e1c6a66c1fffd65a3dd.tar.gz
chromium_src-0a82fd525d1f4d64ce5f4e1c6a66c1fffd65a3dd.tar.bz2
Disable Enhanced Bookmark for ICS devices
M42 is the last version we ship to ICS devices. We want to make sure that ICS users only use the most stable bookmark manager. Therefore we should disable it on ICS now. BUG=466869 Review URL: https://codereview.chromium.org/1008053002 Cr-Commit-Position: refs/heads/master@{#320823}
Diffstat (limited to 'chrome/browser/bookmarks')
-rw-r--r--chrome/browser/bookmarks/enhanced_bookmarks_features.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/bookmarks/enhanced_bookmarks_features.cc b/chrome/browser/bookmarks/enhanced_bookmarks_features.cc
index 1992640..142e5cb 100644
--- a/chrome/browser/bookmarks/enhanced_bookmarks_features.cc
+++ b/chrome/browser/bookmarks/enhanced_bookmarks_features.cc
@@ -22,6 +22,10 @@
#include "extensions/common/features/feature.h"
#include "extensions/common/features/feature_provider.h"
+#if defined(OS_ANDROID)
+#include "base/android/build_info.h"
+#endif
+
namespace {
const char kFieldTrialName[] = "EnhancedBookmarks";
@@ -135,6 +139,11 @@ void UpdateBookmarksExperimentState(
}
#if defined(OS_ANDROID)
+ if (base::android::BuildInfo::GetInstance()->sdk_int() <=
+ base::android::SdkVersion::SDK_VERSION_ICE_CREAM_SANDWICH_MR1) {
+ opt_out = true;
+ bookmarks_experiment_new_state = BOOKMARKS_EXPERIMENT_NONE;
+ }
bool opt_in = !opt_out &&
base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
switches::kEnhancedBookmarksExperiment) == "1";