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

Unified Diff: chrome/browser/ui/webui/options/cookies_view_handler.cc

Issue 10909182: Make FileSystemContext respect StoragePartitions. filesystem:// urls will be properly isolated (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove useless headers. Created 8 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/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 6cb5721843000545ae8a03c1e0facba834992227..065c3dc51829c12fd65897090aaeb2c235a88b74 100644
--- a/chrome/browser/ui/webui/options/cookies_view_handler.cc
+++ b/chrome/browser/ui/webui/options/cookies_view_handler.cc
@@ -30,6 +30,10 @@
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
+namespace fileapi {
+class FileSystemContext;
+}
+
namespace options {
CookiesViewHandler::CookiesViewHandler()
@@ -194,6 +198,8 @@ void CookiesViewHandler::EnsureCookiesTreeModelCreated() {
content::BrowserContext::GetDefaultStoragePartition(profile);
content::IndexedDBContext* indexed_db_context =
storage_partition->GetIndexedDBContext();
+ fileapi::FileSystemContext* file_system_context =
+ storage_partition->GetFileSystemContext();
apps_map[std::string()] = new LocalDataContainer(
"Site Data", std::string(),
new BrowsingDataCookieHelper(profile->GetRequestContext()),
@@ -202,7 +208,7 @@ void CookiesViewHandler::EnsureCookiesTreeModelCreated() {
NULL,
new BrowsingDataAppCacheHelper(profile),
BrowsingDataIndexedDBHelper::Create(indexed_db_context),
- BrowsingDataFileSystemHelper::Create(profile),
+ BrowsingDataFileSystemHelper::Create(file_system_context),
BrowsingDataQuotaHelper::Create(profile),
BrowsingDataServerBoundCertHelper::Create(profile),
BrowsingDataFlashLSOHelper::Create(profile));
@@ -223,7 +229,7 @@ void CookiesViewHandler::EnsureCookiesTreeModelCreated() {
it != extensions->end(); ++it) {
if ((*it)->is_storage_isolated()) {
net::URLRequestContextGetter* context_getter =
- profile->GetRequestContextForIsolatedApp((*it)->id());
+ profile->GetRequestContextForStoragePartition((*it)->id());
// TODO(nasko): When new types of storage are isolated, add the
// appropriate browsing data helper objects to the constructor.
// For now, just cookies are isolated, so other parameters are NULL.
« no previous file with comments | « chrome/browser/ui/views/select_file_dialog_extension_browsertest.cc ('k') | chrome/test/base/testing_profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698