Chromium Code Reviews| Index: chrome/browser/ui/webui/options/cookies_view_handler.cc |
| diff --git a/chrome/browser/ui/webui/options/cookies_view_handler.cc b/chrome/browser/ui/webui/options/cookies_view_handler.cc |
| index 8bf447d091e184e1144a1c604b47001f1ae3e6de..a1be54b5970051afc061b2b85ab1cfb002d09b1a 100644 |
| --- a/chrome/browser/ui/webui/options/cookies_view_handler.cc |
| +++ b/chrome/browser/ui/webui/options/cookies_view_handler.cc |
| @@ -24,6 +24,9 @@ |
| #include "chrome/browser/extensions/extension_service.h" |
| #include "chrome/browser/profiles/profile.h" |
| #include "chrome/browser/ui/webui/cookies_tree_model_util.h" |
| +#include "content/public/browser/browser_context.h" |
| +#include "content/public/browser/storage_partition.h" |
| +#include "content/public/browser/web_contents.h" |
| #include "content/public/browser/web_ui.h" |
| #include "grit/generated_resources.h" |
| #include "ui/base/l10n/l10n_util.h" |
| @@ -188,6 +191,10 @@ void CookiesViewHandler::EnsureCookiesTreeModelCreated() { |
| if (!app_context_ && !cookies_tree_model_.get()) { |
| Profile* profile = Profile::FromWebUI(web_ui()); |
| ContainerMap apps_map; |
| + content::StoragePartition* storage_partition = |
| + content::BrowserContext::GetDefaultStoragePartition(profile); |
| + content::IndexedDBContext* indexed_db_context = |
| + storage_partition->GetIndexedDBContext(); |
|
Charlie Reis
2012/09/15 00:55:58
nit: wrong indent
awong
2012/09/15 01:19:37
Done.
|
| apps_map[std::string()] = new LocalDataContainer( |
| "Site Data", std::string(), |
| new BrowsingDataCookieHelper(profile->GetRequestContext()), |
| @@ -195,7 +202,7 @@ void CookiesViewHandler::EnsureCookiesTreeModelCreated() { |
| new BrowsingDataLocalStorageHelper(profile), |
| NULL, |
| new BrowsingDataAppCacheHelper(profile), |
| - BrowsingDataIndexedDBHelper::Create(profile), |
| + BrowsingDataIndexedDBHelper::Create(indexed_db_context), |
| BrowsingDataFileSystemHelper::Create(profile), |
| BrowsingDataQuotaHelper::Create(profile), |
| BrowsingDataServerBoundCertHelper::Create(profile), |