diff options
author | cramya@chromium.org <cramya@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-11 20:48:55 +0000 |
---|---|---|
committer | cramya@chromium.org <cramya@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-11 20:48:55 +0000 |
commit | ff402386115448de1e4cbcf6fd62251b91ababa6 (patch) | |
tree | 08f555aec6d0d32a2a537890153c4676b99958fa /content/browser/storage_partition_impl.cc | |
parent | 3f05e9167ba720356bdcf866d7456e3c3e53056d (diff) | |
download | chromium_src-ff402386115448de1e4cbcf6fd62251b91ababa6.zip chromium_src-ff402386115448de1e4cbcf6fd62251b91ababa6.tar.gz chromium_src-ff402386115448de1e4cbcf6fd62251b91ababa6.tar.bz2 |
Clear browsing data clears data for type kStorageTypeTemporary but not for kStorageTypeSyncable.
This bug is visible in Android for mail.google.com
Even after Clearing all the data, the syncable data was left behind.
This CL should fix this bug.
BUG=180249
Review URL: https://chromiumcodereview.appspot.com/13357004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193738 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/storage_partition_impl.cc')
-rw-r--r-- | content/browser/storage_partition_impl.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/content/browser/storage_partition_impl.cc b/content/browser/storage_partition_impl.cc index 44da402..ab0e7a5 100644 --- a/content/browser/storage_partition_impl.cc +++ b/content/browser/storage_partition_impl.cc @@ -75,6 +75,11 @@ void ClearOriginOnIOThread( origins, quota::kStorageTypePersistent); } + if (storage_mask & StoragePartition::kQuotaManagedSyncableStorage) { + ClearQuotaManagedOriginsOnIOThread(quota_manager, + origins, + quota::kStorageTypeSyncable); + } } void ClearAllDataOnIOThread( @@ -103,6 +108,11 @@ void ClearAllDataOnIOThread( quota::kStorageTypePersistent, base::Time(), base::Bind(&ClearQuotaManagedOriginsOnIOThread, quota_manager)); } + if (storage_mask & StoragePartition::kQuotaManagedSyncableStorage) { + quota_manager->GetOriginsModifiedSince( + quota::kStorageTypeSyncable, base::Time(), + base::Bind(&ClearQuotaManagedOriginsOnIOThread, quota_manager)); + } } void ClearedShaderCacheOnIOThread(base::Closure callback) { |