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

Unified Diff: chrome/browser/android/bookmarks/bookmarks_bridge.cc

Issue 1009673002: Remove enhanced bookmarks sync experiment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: . Created 5 years, 9 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/android/bookmarks/bookmarks_bridge.cc
diff --git a/chrome/browser/android/bookmarks/bookmarks_bridge.cc b/chrome/browser/android/bookmarks/bookmarks_bridge.cc
index 8a9a1f3b346f11bf2c83cae4dc3f5a8edb0b99f9..e51ca3e4a4fb3d3dbf7f15c38c6b316461349aaa 100644
--- a/chrome/browser/android/bookmarks/bookmarks_bridge.cc
+++ b/chrome/browser/android/bookmarks/bookmarks_bridge.cc
@@ -142,8 +142,7 @@ static jlong Init(JNIEnv* env, jobject obj, jobject j_profile) {
static jboolean IsEnhancedBookmarksFeatureEnabled(JNIEnv* env,
jclass clazz,
jobject j_profile) {
- Profile* profile = ProfileAndroid::FromProfileAndroid(j_profile);
- return IsEnhancedBookmarksEnabled(profile->GetPrefs());
+ return IsEnhancedBookmarksEnabled();
}
static bool IsEditBookmarksEnabled(Profile* profile) {
@@ -739,7 +738,7 @@ base::string16 BookmarksBridge::GetTitle(const BookmarkNode* node) const {
return partner_bookmarks_shim_->GetTitle(node);
if (node == bookmark_model_->bookmark_bar_node()
- && IsEnhancedBookmarksEnabled(profile_->GetPrefs())) {
+ && IsEnhancedBookmarksEnabled()) {
return l10n_util::GetStringUTF16(IDS_ENHANCED_BOOKMARK_BAR_FOLDER_NAME);
}

Powered by Google App Engine
This is Rietveld 408576698