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

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: rebase Created 3 years, 7 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 696 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 } 707 }
708 708
709 MediaDeviceIDSalt::Reset(profile_->GetPrefs()); 709 MediaDeviceIDSalt::Reset(profile_->GetPrefs());
710 } 710 }
711 711
712 ////////////////////////////////////////////////////////////////////////////// 712 //////////////////////////////////////////////////////////////////////////////
713 // DATA_TYPE_DURABLE_PERMISSION 713 // DATA_TYPE_DURABLE_PERMISSION
714 if (remove_mask & DATA_TYPE_DURABLE_PERMISSION) { 714 if (remove_mask & DATA_TYPE_DURABLE_PERMISSION) {
715 HostContentSettingsMapFactory::GetForProfile(profile_) 715 HostContentSettingsMapFactory::GetForProfile(profile_)
716 ->ClearSettingsForOneTypeWithPredicate( 716 ->ClearSettingsForOneTypeWithPredicate(
717 CONTENT_SETTINGS_TYPE_DURABLE_STORAGE, 717 CONTENT_SETTINGS_TYPE_DURABLE_STORAGE, base::Time(),
718 base::Bind(&WebsiteSettingsFilterAdapter, filter)); 718 base::Bind(&WebsiteSettingsFilterAdapter, filter));
719 } 719 }
720 720
721 ////////////////////////////////////////////////////////////////////////////// 721 //////////////////////////////////////////////////////////////////////////////
722 // DATA_TYPE_SITE_USAGE_DATA 722 // DATA_TYPE_SITE_USAGE_DATA
723 if (remove_mask & DATA_TYPE_SITE_USAGE_DATA) { 723 if (remove_mask & DATA_TYPE_SITE_USAGE_DATA) {
724 HostContentSettingsMapFactory::GetForProfile(profile_) 724 HostContentSettingsMapFactory::GetForProfile(profile_)
725 ->ClearSettingsForOneTypeWithPredicate( 725 ->ClearSettingsForOneTypeWithPredicate(
726 CONTENT_SETTINGS_TYPE_SITE_ENGAGEMENT, 726 CONTENT_SETTINGS_TYPE_SITE_ENGAGEMENT, base::Time(),
727 base::Bind(&WebsiteSettingsFilterAdapter, filter)); 727 base::Bind(&WebsiteSettingsFilterAdapter, filter));
728 } 728 }
729 729
730 if ((remove_mask & DATA_TYPE_SITE_USAGE_DATA) || 730 if ((remove_mask & DATA_TYPE_SITE_USAGE_DATA) ||
731 (remove_mask & DATA_TYPE_HISTORY)) { 731 (remove_mask & DATA_TYPE_HISTORY)) {
732 HostContentSettingsMapFactory::GetForProfile(profile_) 732 HostContentSettingsMapFactory::GetForProfile(profile_)
733 ->ClearSettingsForOneTypeWithPredicate( 733 ->ClearSettingsForOneTypeWithPredicate(
734 CONTENT_SETTINGS_TYPE_APP_BANNER, 734 CONTENT_SETTINGS_TYPE_APP_BANNER, base::Time(),
735 base::Bind(&WebsiteSettingsFilterAdapter, filter)); 735 base::Bind(&WebsiteSettingsFilterAdapter, filter));
736 736
737 PermissionDecisionAutoBlocker::GetForProfile(profile_)->RemoveCountsByUrl( 737 PermissionDecisionAutoBlocker::GetForProfile(profile_)->RemoveCountsByUrl(
738 filter); 738 filter);
739 } 739 }
740 740
741 ////////////////////////////////////////////////////////////////////////////// 741 //////////////////////////////////////////////////////////////////////////////
742 // Password manager 742 // Password manager
743 if (remove_mask & DATA_TYPE_PASSWORDS) { 743 if (remove_mask & DATA_TYPE_PASSWORDS) {
744 base::RecordAction(UserMetricsAction("ClearBrowsingData_Passwords")); 744 base::RecordAction(UserMetricsAction("ClearBrowsingData_Passwords"));
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
1144 } 1144 }
1145 1145
1146 void ChromeBrowsingDataRemoverDelegate:: 1146 void ChromeBrowsingDataRemoverDelegate::
1147 OnDeauthorizeFlashContentLicensesCompleted( 1147 OnDeauthorizeFlashContentLicensesCompleted(
1148 uint32_t request_id, 1148 uint32_t request_id,
1149 bool /* success */) { 1149 bool /* success */) {
1150 DCHECK_EQ(request_id, deauthorize_flash_content_licenses_request_id_); 1150 DCHECK_EQ(request_id, deauthorize_flash_content_licenses_request_id_);
1151 clear_flash_content_licenses_.GetCompletionCallback().Run(); 1151 clear_flash_content_licenses_.GetCompletionCallback().Run();
1152 } 1152 }
1153 #endif 1153 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698