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

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: Tiny docs tweak. 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
« no previous file with comments | « chrome/browser/browsing_data_remover.h ('k') | chrome/browser/browsing_data_remover_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browsing_data_remover.cc
diff --git a/chrome/browser/browsing_data_remover.cc b/chrome/browser/browsing_data_remover.cc
index 81d4b936b8f906a6ace1e04b0c1766ad00b1a987..1be04eb67f2bb8af9a2957fe8e5aa911540b793d 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_),
« no previous file with comments | « chrome/browser/browsing_data_remover.h ('k') | chrome/browser/browsing_data_remover_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698