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-16 04:01:08 +0000
committerajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-16 04:01:08 +0000
commit71ace01735e041c2633dca68de83f59946d60b00 (patch)
treefcb901ec49437b5a161805958b2fd096c743d12d /chrome/browser/extensions/data_deleter.cc
parent84ed2976c5e799f3eaa79cc938f6cd4b3a730477 (diff)
downloadchromium_src-71ace01735e041c2633dca68de83f59946d60b00.zip
chromium_src-71ace01735e041c2633dca68de83f59946d60b00.tar.gz
chromium_src-71ace01735e041c2633dca68de83f59946d60b00.tar.bz2
Redo the Storage Partition directory layout to support guest tags and origin based partitions.
The new layout is (1) ProfileDir/Default/Storage Partitions/extensions/{ extension_id }/default/ (2) ProfileDir/Default/Storage Partitions/extensions/{ extension_id }/{ hash(BrowserTag.partition) }/ In the future, after we add support for browser tags in webui or add support for server administrators of websites to opt into storage isolation, we will also need: (3) ProfileDir/Default/Storage Partitions/origins/{ hash(origin) }/default/ (4) ProfileDir/Default/Storage Partitions/origins/{ hash(origin) }/{ hash(BrowserTag.partition) }/ TBR=willchan BUG=85121 Review URL: https://chromiumcodereview.appspot.com/10913265 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157039 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, 3 insertions, 2 deletions
diff --git a/chrome/browser/extensions/data_deleter.cc b/chrome/browser/extensions/data_deleter.cc
index 409b8df..38c3775 100644
--- a/chrome/browser/extensions/data_deleter.cc
+++ b/chrome/browser/extensions/data_deleter.cc
@@ -93,8 +93,9 @@ DataDeleter::DataDeleter(
} else if (is_storage_isolated) {
extension_request_context_ =
profile->GetRequestContextForIsolatedApp(extension_id);
- isolated_app_path_ = profile->GetPath().
- Append(content::kStoragePartitionDirname).AppendASCII(extension_id);
+ isolated_app_path_ =
+ profile->GetPath().Append(
+ content::StoragePartition::GetPartitionPath(extension_id));
} else {
extension_request_context_ = profile->GetRequestContext();
}