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

Side by Side Diff: chrome/browser/content_settings/content_settings_notification_provider.cc

Issue 7810017: Revert 98938 - Migrate Obsolete NotificationsSettings and remove content_settings::NotificationsP... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 months 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:mergeinfo
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698