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

Unified Diff: chrome/browser/android/history_report/history_report_jni_bridge.cc

Issue 2216713002: Use BookmarkModelFactory::GetForBrowserContext everywhere (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bookmarks
Patch Set: Eliminate Profile::FromBrowserContext in some places Created 4 years, 4 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/history_report/history_report_jni_bridge.cc
diff --git a/chrome/browser/android/history_report/history_report_jni_bridge.cc b/chrome/browser/android/history_report/history_report_jni_bridge.cc
index ee8d0a045f580cc8c106f8cbc7d1fa555f1adb65..156ebe8c3ae5f627ddadfebf46542826344adbcf 100644
--- a/chrome/browser/android/history_report/history_report_jni_bridge.cc
+++ b/chrome/browser/android/history_report/history_report_jni_bridge.cc
@@ -49,7 +49,7 @@ HistoryReportJniBridge::HistoryReportJniBridge(JNIEnv* env, jobject obj)
usage_reports_buffer_service_.reset(
new UsageReportsBufferService(profile->GetPath()));
usage_reports_buffer_service_->Init();
- bookmark_model_.reset(BookmarkModelFactory::GetForProfile(profile));
+ bookmark_model_.reset(BookmarkModelFactory::GetForBrowserContext(profile));
base::Callback<void(void)> on_change = base::Bind(
&history_report::HistoryReportJniBridge::NotifyDataChanged,
base::Unretained(this));

Powered by Google App Engine
This is Rietveld 408576698