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

Unified Diff: chrome/browser/storage/durable_storage_permission_context.cc

Issue 2216713002: Use BookmarkModelFactory::GetForBrowserContext everywhere (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bookmarks
Patch Set: Replace in .mm files 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
« no previous file with comments | « chrome/browser/storage/durable_storage_browsertest.cc ('k') | chrome/browser/sync/chrome_sync_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/storage/durable_storage_permission_context.cc
diff --git a/chrome/browser/storage/durable_storage_permission_context.cc b/chrome/browser/storage/durable_storage_permission_context.cc
index 1bcc08e9b5556c83eada9ff894cd9076d5a49113..7eac71f09f7bd38afc7452a8ef6e209229900b31 100644
--- a/chrome/browser/storage/durable_storage_permission_context.cc
+++ b/chrome/browser/storage/durable_storage_permission_context.cc
@@ -40,7 +40,8 @@ void DurableStoragePermissionContext::DecidePermission(
// TODO(dgrogan): Remove bookmarks check in favor of site engagement. In the
// meantime maybe grant permission to A2HS origins as well.
- BookmarkModel* model = BookmarkModelFactory::GetForProfileIfExists(profile());
+ BookmarkModel* model =
+ BookmarkModelFactory::GetForBrowserContextIfExists(profile());
if (model) {
std::vector<bookmarks::BookmarkModel::URLAndTitle> bookmarks;
model->GetBookmarks(&bookmarks);
« no previous file with comments | « chrome/browser/storage/durable_storage_browsertest.cc ('k') | chrome/browser/sync/chrome_sync_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698