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

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

Issue 2812113004: Write last_modified date to Content Settings in the PrefProvider (Closed)
Patch Set: fix ios Created 3 years, 8 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/chrome_browsing_data_remover_delegate.h" 5 #include "chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 } 698 }
699 699
700 MediaDeviceIDSalt::Reset(profile_->GetPrefs()); 700 MediaDeviceIDSalt::Reset(profile_->GetPrefs());
701 } 701 }
702 702
703 ////////////////////////////////////////////////////////////////////////////// 703 //////////////////////////////////////////////////////////////////////////////
704 // DATA_TYPE_DURABLE_PERMISSION 704 // DATA_TYPE_DURABLE_PERMISSION
705 if (remove_mask & DATA_TYPE_DURABLE_PERMISSION) { 705 if (remove_mask & DATA_TYPE_DURABLE_PERMISSION) {
706 HostContentSettingsMapFactory::GetForProfile(profile_) 706 HostContentSettingsMapFactory::GetForProfile(profile_)
707 ->ClearSettingsForOneTypeWithPredicate( 707 ->ClearSettingsForOneTypeWithPredicate(
708 CONTENT_SETTINGS_TYPE_DURABLE_STORAGE, 708 CONTENT_SETTINGS_TYPE_DURABLE_STORAGE, base::Time(),
709 base::Bind(&WebsiteSettingsFilterAdapter, filter)); 709 base::Bind(&WebsiteSettingsFilterAdapter, filter));
710 } 710 }
711 711
712 ////////////////////////////////////////////////////////////////////////////// 712 //////////////////////////////////////////////////////////////////////////////
713 // DATA_TYPE_SITE_USAGE_DATA 713 // DATA_TYPE_SITE_USAGE_DATA
714 if (remove_mask & DATA_TYPE_SITE_USAGE_DATA) { 714 if (remove_mask & DATA_TYPE_SITE_USAGE_DATA) {
715 HostContentSettingsMapFactory::GetForProfile(profile_) 715 HostContentSettingsMapFactory::GetForProfile(profile_)
716 ->ClearSettingsForOneTypeWithPredicate( 716 ->ClearSettingsForOneTypeWithPredicate(
717 CONTENT_SETTINGS_TYPE_SITE_ENGAGEMENT, 717 CONTENT_SETTINGS_TYPE_SITE_ENGAGEMENT, base::Time(),
718 base::Bind(&WebsiteSettingsFilterAdapter, filter)); 718 base::Bind(&WebsiteSettingsFilterAdapter, filter));
719 } 719 }
720 720
721 if ((remove_mask & DATA_TYPE_SITE_USAGE_DATA) || 721 if ((remove_mask & DATA_TYPE_SITE_USAGE_DATA) ||
722 (remove_mask & DATA_TYPE_HISTORY)) { 722 (remove_mask & DATA_TYPE_HISTORY)) {
723 HostContentSettingsMapFactory::GetForProfile(profile_) 723 HostContentSettingsMapFactory::GetForProfile(profile_)
724 ->ClearSettingsForOneTypeWithPredicate( 724 ->ClearSettingsForOneTypeWithPredicate(
725 CONTENT_SETTINGS_TYPE_APP_BANNER, 725 CONTENT_SETTINGS_TYPE_APP_BANNER, base::Time(),
726 base::Bind(&WebsiteSettingsFilterAdapter, filter)); 726 base::Bind(&WebsiteSettingsFilterAdapter, filter));
727 727
728 PermissionDecisionAutoBlocker::GetForProfile(profile_)->RemoveCountsByUrl( 728 PermissionDecisionAutoBlocker::GetForProfile(profile_)->RemoveCountsByUrl(
729 filter); 729 filter);
730 } 730 }
731 731
732 ////////////////////////////////////////////////////////////////////////////// 732 //////////////////////////////////////////////////////////////////////////////
733 // Password manager 733 // Password manager
734 if (remove_mask & DATA_TYPE_PASSWORDS) { 734 if (remove_mask & DATA_TYPE_PASSWORDS) {
735 base::RecordAction(UserMetricsAction("ClearBrowsingData_Passwords")); 735 base::RecordAction(UserMetricsAction("ClearBrowsingData_Passwords"));
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
1134 } 1134 }
1135 1135
1136 void ChromeBrowsingDataRemoverDelegate:: 1136 void ChromeBrowsingDataRemoverDelegate::
1137 OnDeauthorizeFlashContentLicensesCompleted( 1137 OnDeauthorizeFlashContentLicensesCompleted(
1138 uint32_t request_id, 1138 uint32_t request_id,
1139 bool /* success */) { 1139 bool /* success */) {
1140 DCHECK_EQ(request_id, deauthorize_flash_content_licenses_request_id_); 1140 DCHECK_EQ(request_id, deauthorize_flash_content_licenses_request_id_);
1141 clear_flash_content_licenses_.GetCompletionCallback().Run(); 1141 clear_flash_content_licenses_.GetCompletionCallback().Run();
1142 } 1142 }
1143 #endif 1143 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698