OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 | 5 |
6 #include "chrome/browser/content_settings/content_settings_notification_provider
.h" | 6 #include "chrome/browser/content_settings/content_settings_notification_provider
.h" |
7 | 7 |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
9 #include "chrome/browser/notifications/desktop_notification_service_factory.h" | 9 #include "chrome/browser/notifications/desktop_notification_service_factory.h" |
10 #include "chrome/browser/notifications/notification.h" | 10 #include "chrome/browser/notifications/notification.h" |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 prefs->ScheduleSavePersistentPrefs(); | 359 prefs->ScheduleSavePersistentPrefs(); |
360 } | 360 } |
361 | 361 |
362 void NotificationProvider::ResetAllOrigins() { | 362 void NotificationProvider::ResetAllOrigins() { |
363 PrefService* prefs = profile_->GetPrefs(); | 363 PrefService* prefs = profile_->GetPrefs(); |
364 prefs->ClearPref(prefs::kDesktopNotificationAllowedOrigins); | 364 prefs->ClearPref(prefs::kDesktopNotificationAllowedOrigins); |
365 prefs->ClearPref(prefs::kDesktopNotificationDeniedOrigins); | 365 prefs->ClearPref(prefs::kDesktopNotificationDeniedOrigins); |
366 } | 366 } |
367 | 367 |
368 } // namespace content_settings | 368 } // namespace content_settings |
OLD | NEW |