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

Unified Diff: chrome/browser/browsing_data_remover.cc

Issue 10522002: `chrome.browsingData` extension API can now remove data from protected origins. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months 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
Index: chrome/browser/browsing_data_remover.cc
diff --git a/chrome/browser/browsing_data_remover.cc b/chrome/browser/browsing_data_remover.cc
index b61f2554f02764c51b530fd888208179d26c996a..ac71c5a63fc35c9c07609f54ffd6c8df24fadf09 100644
--- a/chrome/browser/browsing_data_remover.cc
+++ b/chrome/browser/browsing_data_remover.cc
@@ -74,20 +74,24 @@ bool BrowsingDataRemover::removing_ = false;
BrowsingDataRemover::NotificationDetails::NotificationDetails()
: removal_begin(base::Time()),
- removal_mask(-1) {
+ removal_mask(-1),
+ origin_set_mask(-1) {
}
BrowsingDataRemover::NotificationDetails::NotificationDetails(
const BrowsingDataRemover::NotificationDetails& details)
: removal_begin(details.removal_begin),
- removal_mask(details.removal_mask) {
+ removal_mask(details.removal_mask),
+ origin_set_mask(details.origin_set_mask) {
}
BrowsingDataRemover::NotificationDetails::NotificationDetails(
base::Time removal_begin,
- int removal_mask)
+ int removal_mask,
+ int origin_set_mask)
: removal_begin(removal_begin),
- removal_mask(removal_mask) {
+ removal_mask(removal_mask),
+ origin_set_mask(origin_set_mask) {
}
BrowsingDataRemover::NotificationDetails::~NotificationDetails() {}
@@ -485,7 +489,8 @@ void BrowsingDataRemover::NotifyAndDeleteIfDone() {
set_removing(false);
// Send global notification, then notify any explicit observers.
- BrowsingDataRemover::NotificationDetails details(delete_begin_, remove_mask_);
+ BrowsingDataRemover::NotificationDetails details(delete_begin_, remove_mask_,
+ origin_set_mask_);
content::NotificationService::current()->Notify(
chrome::NOTIFICATION_BROWSING_DATA_REMOVED,
content::Source<Profile>(profile_),

Powered by Google App Engine
This is Rietveld 408576698