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

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: Correctly delete all data. 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 | « no previous file | content/browser/browser_context.cc » ('j') | content/browser/storage_partition_impl.cc » ('J')
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..79304b583d1bf5dca34514d4a0696596cbfc4f5d 100644
--- a/chrome/browser/extensions/data_deleter.cc
+++ b/chrome/browser/extensions/data_deleter.cc
@@ -34,6 +34,12 @@ void DataDeleter::StartDeleting(Profile* profile,
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 | « no previous file | content/browser/browser_context.cc » ('j') | content/browser/storage_partition_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698