| 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 7cd704af9ffb109dc649c64c43aa1fe404c48c6a..73cd3194183e2dd37746e63e5d86b7e241fa5d12 100644
|
| --- a/chrome/browser/android/bookmarks/bookmarks_bridge.cc
|
| +++ b/chrome/browser/android/bookmarks/bookmarks_bridge.cc
|
| @@ -9,6 +9,8 @@
|
| #include "base/prefs/pref_service.h"
|
| #include "chrome/browser/bookmarks/bookmark_model_factory.h"
|
| #include "chrome/browser/bookmarks/chrome_bookmark_client_factory.h"
|
| +#include "chrome/browser/bookmarks/enhanced_bookmarks_features.h"
|
| +#include "chrome/browser/browser_process.h"
|
| #include "chrome/browser/profiles/incognito_helpers.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/profiles/profile_android.h"
|
| @@ -99,6 +101,14 @@ static jlong GetNativeBookmarkModel(JNIEnv* env,
|
| return reinterpret_cast<jlong>(bookmark_model_);
|
| }
|
|
|
| +static jboolean IsEnhancedBookmarksEnabled(JNIEnv* env,
|
| + jclass clazz,
|
| + jobject j_profile) {
|
| + Profile *profile = ProfileAndroid::FromProfileAndroid(j_profile);
|
| + return IsEnhancedBookmarksExperimentEnabled(profile->GetPrefs(),
|
| + g_browser_process->local_state());
|
| +}
|
| +
|
| static bool IsEditBookmarksEnabled() {
|
| return ProfileManager::GetLastUsedProfile()->GetPrefs()->GetBoolean(
|
| prefs::kEditBookmarksEnabled);
|
|
|