Index: chrome/browser/notifications/desktop_notification_service.cc |
diff --git a/chrome/browser/notifications/desktop_notification_service.cc b/chrome/browser/notifications/desktop_notification_service.cc |
index 494d86fd61c982072334d5cfc2833fc8cf6719ee..2badc861dda7b79051e566d2dc7cd9c46a69978f 100644 |
--- a/chrome/browser/notifications/desktop_notification_service.cc |
+++ b/chrome/browser/notifications/desktop_notification_service.cc |
@@ -452,6 +452,11 @@ void DesktopNotificationService::SetDefaultContentSetting( |
// The cache is updated through the notification observer. |
} |
+bool DesktopNotificationService::IsDefaultContentSettingManaged() const { |
+ return profile_->GetPrefs()->IsManagedPreference( |
+ prefs::kDesktopNotificationDefaultContentSetting); |
+} |
+ |
void DesktopNotificationService::ResetToDefaultContentSetting() { |
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |