Chromium Code Reviews| Index: chrome/browser/extensions/data_deleter.cc |
| diff --git a/chrome/browser/extensions/data_deleter.cc b/chrome/browser/extensions/data_deleter.cc |
| index 15243c0b6746b5a24c2193f689928ebe59dd6d20..3baee3afede222ad30d70035ca6217b5f590f57e 100644 |
| --- a/chrome/browser/extensions/data_deleter.cc |
| +++ b/chrome/browser/extensions/data_deleter.cc |
| @@ -14,6 +14,8 @@ |
| #include "chrome/common/url_constants.h" |
| #include "content/public/browser/dom_storage_context.h" |
| #include "content/public/browser/indexed_db_context.h" |
| +#include "content/public/browser/render_process_host.h" |
| +#include "content/public/browser/site_instance.h" |
| #include "content/public/browser/storage_partition.h" |
| #include "content/public/common/content_constants.h" |
| #include "net/base/completion_callback.h" |
| @@ -92,11 +94,11 @@ DataDeleter::DataDeleter( |
| if (storage_origin.SchemeIs(chrome::kExtensionScheme)) { |
| extension_request_context_ = profile->GetRequestContextForExtensions(); |
| } else if (is_storage_isolated) { |
| - extension_request_context_ = |
| - profile->GetRequestContextForStoragePartition(extension_id); |
| - isolated_app_path_ = |
| - profile->GetPath().Append( |
| - content::StoragePartition::GetPartitionPath(extension_id)); |
| + GURL url = Extension::GetBaseURLFromExtensionId(extension_id); |
|
awong
2012/10/29 23:37:40
const GURL&
nasko
2012/10/30 00:32:59
Done.
|
| + content::StoragePartition* storage_partition = |
| + BrowserContext::GetStoragePartitionForSite(profile, url); |
| + extension_request_context_ = storage_partition->GetURLRequestContext(); |
|
awong
2012/10/29 23:37:40
Add a TODO for me here will ya? I think this code
nasko
2012/10/30 00:32:59
Done.
|
| + isolated_app_path_ = storage_partition->GetPath(); |
| } else { |
| extension_request_context_ = profile->GetRequestContext(); |
| } |