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

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

Issue 598593007: Make EnhancedBookmarkBridge initialized with profile (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/android/bookmarks/bookmarks_bridge.cc
diff --git a/chrome/browser/android/bookmarks/bookmarks_bridge.cc b/chrome/browser/android/bookmarks/bookmarks_bridge.cc
index 6dcb559dc2072fedf67af9f42bc0ec79788f001b..c9784a3aa706c5b19fe36f7fb59d8873aa7f32ea 100644
--- a/chrome/browser/android/bookmarks/bookmarks_bridge.cc
+++ b/chrome/browser/android/bookmarks/bookmarks_bridge.cc
@@ -126,14 +126,6 @@ static jlong Init(JNIEnv* env, jobject obj, jobject j_profile) {
return reinterpret_cast<intptr_t>(delegate);
}
-static jlong GetNativeBookmarkModel(JNIEnv* env,
- jclass caller,
- jobject j_profile) {
- Profile* profile = ProfileAndroid::FromProfileAndroid(j_profile);
- BookmarkModel *bookmark_model_ = BookmarkModelFactory::GetForProfile(profile);
- return reinterpret_cast<jlong>(bookmark_model_);
-}
-
static jboolean IsEnhancedBookmarksFeatureEnabled(JNIEnv* env,
jclass clazz,
jobject j_profile) {

Powered by Google App Engine
This is Rietveld 408576698