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); |