diff options
Diffstat (limited to 'chrome/browser/notifications/desktop_notification_service.cc')
-rw-r--r-- | chrome/browser/notifications/desktop_notification_service.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/notifications/desktop_notification_service.cc b/chrome/browser/notifications/desktop_notification_service.cc index fd95141..a467697 100644 --- a/chrome/browser/notifications/desktop_notification_service.cc +++ b/chrome/browser/notifications/desktop_notification_service.cc @@ -418,6 +418,13 @@ void DesktopNotificationService::SetDefaultContentSetting( // The cache is updated through the notification observer. } +void DesktopNotificationService::ResetToDefaultContentSetting() { + DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI)); + + PrefService* prefs = profile_->GetPrefs(); + prefs->ClearPref(prefs::kDesktopNotificationDefaultContentSetting); +} + std::vector<GURL> DesktopNotificationService::GetAllowedOrigins() { std::vector<GURL> allowed_origins; PrefService* prefs = profile_->GetPrefs(); |