From 0a82fd525d1f4d64ce5f4e1c6a66c1fffd65a3dd Mon Sep 17 00:00:00 2001 From: ianwen Date: Mon, 16 Mar 2015 16:43:33 -0700 Subject: 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} --- chrome/browser/bookmarks/enhanced_bookmarks_features.cc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'chrome/browser/bookmarks/enhanced_bookmarks_features.cc') 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"; -- cgit v1.1