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

Side by Side Diff: chrome/browser/browsing_data/browsing_data_remover.cc

Issue 919843003: Clear app banner data when history is cleared. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Feedback Created 5 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/browsing_data/browsing_data_remover.h" 5 #include "chrome/browser/browsing_data/browsing_data_remover.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 plugin_data_remover_->StartRemoving(delete_begin_); 551 plugin_data_remover_->StartRemoving(delete_begin_);
552 552
553 base::WaitableEventWatcher::EventCallback watcher_callback = 553 base::WaitableEventWatcher::EventCallback watcher_callback =
554 base::Bind(&BrowsingDataRemover::OnWaitableEventSignaled, 554 base::Bind(&BrowsingDataRemover::OnWaitableEventSignaled,
555 base::Unretained(this)); 555 base::Unretained(this));
556 watcher_.StartWatching(event, watcher_callback); 556 watcher_.StartWatching(event, watcher_callback);
557 } 557 }
558 #endif 558 #endif
559 559
560 #if defined(OS_ANDROID) 560 #if defined(OS_ANDROID)
561 if (remove_mask & REMOVE_APP_BANNER_DATA) { 561 if (remove_mask & REMOVE_APP_BANNER_DATA || remove_mask & REMOVE_HISTORY) {
562 profile_->GetHostContentSettingsMap()->ClearSettingsForOneType( 562 profile_->GetHostContentSettingsMap()->ClearSettingsForOneType(
563 CONTENT_SETTINGS_TYPE_APP_BANNER); 563 CONTENT_SETTINGS_TYPE_APP_BANNER);
564 } 564 }
565 #endif 565 #endif
566 566
567 if (remove_mask & REMOVE_PASSWORDS) { 567 if (remove_mask & REMOVE_PASSWORDS) {
568 content::RecordAction(UserMetricsAction("ClearBrowsingData_Passwords")); 568 content::RecordAction(UserMetricsAction("ClearBrowsingData_Passwords"));
569 password_manager::PasswordStore* password_store = 569 password_manager::PasswordStore* password_store =
570 PasswordStoreFactory::GetForProfile( 570 PasswordStoreFactory::GetForProfile(
571 profile_, ServiceAccessType::EXPLICIT_ACCESS).get(); 571 profile_, ServiceAccessType::EXPLICIT_ACCESS).get();
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
1220 waiting_for_clear_domain_reliability_monitor_ = false; 1220 waiting_for_clear_domain_reliability_monitor_ = false;
1221 NotifyAndDeleteIfDone(); 1221 NotifyAndDeleteIfDone();
1222 } 1222 }
1223 1223
1224 // static 1224 // static
1225 BrowsingDataRemover::CallbackSubscription 1225 BrowsingDataRemover::CallbackSubscription
1226 BrowsingDataRemover::RegisterOnBrowsingDataRemovedCallback( 1226 BrowsingDataRemover::RegisterOnBrowsingDataRemovedCallback(
1227 const BrowsingDataRemover::Callback& callback) { 1227 const BrowsingDataRemover::Callback& callback) {
1228 return GetOnBrowsingDataRemovedCallbacks()->Add(callback); 1228 return GetOnBrowsingDataRemovedCallbacks()->Add(callback);
1229 } 1229 }
OLDNEW
« no previous file with comments | « chrome/browser/banners/app_banner_settings_helper.cc ('k') | chrome/browser/ui/webui/history_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698