Commit 838c7853 authored by zxliang's avatar zxliang Committed by Commit Bot

[CastWebService] Renaming mask as remove_data_mask.

Renaming mask as remove_data_mask.

Bug: b/144316586
Test: CQ
Change-Id: I49f490e11bee9e837ec24ff611142cee1b334e19
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1961167Reviewed-by: default avatarSean Topping <seantopping@chromium.org>
Commit-Queue: Zhaoxin Liang <zxliang@google.com>
Cr-Commit-Position: refs/heads/master@{#723590}
parent 63443b20
...@@ -29,12 +29,13 @@ namespace chromecast { ...@@ -29,12 +29,13 @@ namespace chromecast {
namespace { namespace {
uint32_t mask = content::StoragePartition::REMOVE_DATA_MASK_APPCACHE | uint32_t remove_data_mask =
content::StoragePartition::REMOVE_DATA_MASK_COOKIES | content::StoragePartition::REMOVE_DATA_MASK_APPCACHE |
content::StoragePartition::REMOVE_DATA_MASK_FILE_SYSTEMS | content::StoragePartition::REMOVE_DATA_MASK_COOKIES |
content::StoragePartition::REMOVE_DATA_MASK_INDEXEDDB | content::StoragePartition::REMOVE_DATA_MASK_FILE_SYSTEMS |
content::StoragePartition::REMOVE_DATA_MASK_LOCAL_STORAGE | content::StoragePartition::REMOVE_DATA_MASK_INDEXEDDB |
content::StoragePartition::REMOVE_DATA_MASK_WEBSQL; content::StoragePartition::REMOVE_DATA_MASK_LOCAL_STORAGE |
content::StoragePartition::REMOVE_DATA_MASK_WEBSQL;
} // namespace } // namespace
...@@ -102,7 +103,8 @@ void CastWebService::ClearLocalStorage(base::OnceClosure callback) { ...@@ -102,7 +103,8 @@ void CastWebService::ClearLocalStorage(base::OnceClosure callback) {
cookie_delete_filter->session_control = cookie_delete_filter->session_control =
network::mojom::CookieDeletionSessionControl::IGNORE_CONTROL; network::mojom::CookieDeletionSessionControl::IGNORE_CONTROL;
partition->ClearData( partition->ClearData(
mask, content::StoragePartition::QUOTA_MANAGED_STORAGE_MASK_ALL, remove_data_mask,
content::StoragePartition::QUOTA_MANAGED_STORAGE_MASK_ALL,
content::StoragePartition::OriginMatcherFunction(), content::StoragePartition::OriginMatcherFunction(),
std::move(cookie_delete_filter), true /*perform_cleanup*/, std::move(cookie_delete_filter), true /*perform_cleanup*/,
base::Time::Min(), base::Time::Max(), std::move(cb)); base::Time::Min(), base::Time::Max(), std::move(cb));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment