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 42faeaf839291340bde546714d5d32b7d1c304ba..9de19f450a15bd825c16e1c88f3d7da8adb0c773 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)); |