From 71ace01735e041c2633dca68de83f59946d60b00 Mon Sep 17 00:00:00 2001 From: "ajwong@chromium.org" Date: Sun, 16 Sep 2012 04:01:08 +0000 Subject: 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 --- chrome/browser/extensions/data_deleter.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'chrome/browser/extensions/data_deleter.cc') 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(); } -- cgit v1.1