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

Unified Diff: chrome/browser/extensions/data_deleter.cc

Issue 11362268: Implement the ability to obliterate a storage partition from disk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: source control is hard, let's go shopping! Created 8 years, 1 month 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
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | content/browser/browser_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/data_deleter.cc
diff --git a/chrome/browser/extensions/data_deleter.cc b/chrome/browser/extensions/data_deleter.cc
index b4eac2bb5d0d725e339a185ffce544c8f8ed32ab..fe84639e561255206659e87add712820141785ba 100644
--- a/chrome/browser/extensions/data_deleter.cc
+++ b/chrome/browser/extensions/data_deleter.cc
@@ -24,16 +24,16 @@ void DataDeleter::StartDeleting(Profile* profile,
const std::string& extension_id,
const GURL& storage_origin,
bool is_storage_isolated) {
- // TODO(ajwong): If |is_storage_isolated|, we should just blowaway the
- // whole directory that the associated StoragePartition is located at. To do
- // this, we need to ensure that all contexts referencing that directory have
- // closed their file handles, otherwise Windows will complain.
- //
- // http://www.crbug.com/85127
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
DCHECK(profile);
const GURL& site = Extension::GetBaseURLFromExtensionId(extension_id);
+
+ if (is_storage_isolated) {
+ BrowserContext::AsyncObliterateStoragePartition(profile, site);
+ return;
+ }
+
content::StoragePartition* partition =
BrowserContext::GetStoragePartitionForSite(profile, site);
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | content/browser/browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698