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

Unified Diff: chrome/browser/notifications/platform_notification_service_impl.cc

Issue 1411653004: Remove last usage functions from HostContentSettingsMap Base URL: https://chromium.googlesource.com/chromium/src.git@simplify-host-content-settings
Patch Set: Created 5 years, 1 month 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/notifications/platform_notification_service_impl.cc
diff --git a/chrome/browser/notifications/platform_notification_service_impl.cc b/chrome/browser/notifications/platform_notification_service_impl.cc
index 04734d10174cc6a3e0742d56480536bf374d35ba..c9dcf9177adbecc223c2c6137c46f6d847fd920c 100644
--- a/chrome/browser/notifications/platform_notification_service_impl.cc
+++ b/chrome/browser/notifications/platform_notification_service_impl.cc
@@ -262,9 +262,6 @@ void PlatformNotificationServiceImpl::DisplayNotification(
base::Bind(&CancelNotification,
notification.delegate_id(),
NotificationUIManager::GetProfileID(profile));
-
- HostContentSettingsMapFactory::GetForProfile(profile)->UpdateLastUsage(
- origin, origin, CONTENT_SETTINGS_TYPE_NOTIFICATIONS);
}
void PlatformNotificationServiceImpl::DisplayPersistentNotification(
@@ -295,9 +292,6 @@ void PlatformNotificationServiceImpl::DisplayPersistentNotification(
GetNotificationUIManager()->Add(notification, profile);
content::RecordAction(
base::UserMetricsAction("Notifications.Persistent.Shown"));
-
- HostContentSettingsMapFactory::GetForProfile(profile)->UpdateLastUsage(
- origin, origin, CONTENT_SETTINGS_TYPE_NOTIFICATIONS);
}
void PlatformNotificationServiceImpl::ClosePersistentNotification(

Powered by Google App Engine
This is Rietveld 408576698