summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/data_deleter.cc
diff options
context:
space:
mode:
authorajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-18 03:04:09 +0000
committerajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-18 03:04:09 +0000
commit10eb2816fd7d28974114910aa5bfc105366a187f (patch)
tree7584d8faaa940e6ce8bb08320004ff402160b60e /chrome/browser/extensions/data_deleter.cc
parentf37a6bc327a34487e61beab79c3ec06390a42320 (diff)
downloadchromium_src-10eb2816fd7d28974114910aa5bfc105366a187f.zip
chromium_src-10eb2816fd7d28974114910aa5bfc105366a187f.tar.gz
chromium_src-10eb2816fd7d28974114910aa5bfc105366a187f.tar.bz2
continuing from http://http://codereview.chromium.org/10823241
This intentionally doesn't change the ChromeOS behavior at all. They all still use the default FileSystemContext. This code also exposes the normal and media URLRequestGetters via the StoragePartition, and cleans up a bit of code that was accessing the URLRequestGetter in odd ways. Also, it makes Workers correctly use the Media Cache for Media fetches. TBR=benjhyden,sky,davemoore,piman,mkwst,kalman BUG=85121 Review URL: https://chromiumcodereview.appspot.com/10909182 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157284 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/data_deleter.cc')
-rw-r--r--chrome/browser/extensions/data_deleter.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/chrome/browser/extensions/data_deleter.cc b/chrome/browser/extensions/data_deleter.cc
index 9ce58a8..07cc87a 100644
--- a/chrome/browser/extensions/data_deleter.cc
+++ b/chrome/browser/extensions/data_deleter.cc
@@ -93,15 +93,14 @@ DataDeleter::DataDeleter(
extension_request_context_ = profile->GetRequestContextForExtensions();
} else if (is_storage_isolated) {
extension_request_context_ =
- profile->GetRequestContextForIsolatedApp(extension_id);
+ profile->GetRequestContextForStoragePartition(extension_id);
isolated_app_path_ =
profile->GetPath().Append(
content::StoragePartition::GetPartitionPath(extension_id));
} else {
extension_request_context_ = profile->GetRequestContext();
}
-
- file_system_context_ = BrowserContext::GetFileSystemContext(profile);
+ file_system_context_ = storage_partition->GetFileSystemContext();
indexed_db_context_ = storage_partition->GetIndexedDBContext();
storage_origin_ = storage_origin;