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

Side by Side Diff: chrome/browser/notifications/notification_ui_manager_impl.cc

Issue 12211105: Move remaining non-test, non-Chrome-specific Prefs code to base/prefs/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "chrome/browser/notifications/notification_ui_manager_impl.h" 5 #include "chrome/browser/notifications/notification_ui_manager_impl.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/prefs/pref_service.h"
8 #include "base/stl_util.h" 9 #include "base/stl_util.h"
9 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/fullscreen.h" 11 #include "chrome/browser/fullscreen.h"
11 #include "chrome/browser/idle.h" 12 #include "chrome/browser/idle.h"
12 #include "chrome/browser/notifications/balloon_collection.h" 13 #include "chrome/browser/notifications/balloon_collection.h"
13 #include "chrome/browser/notifications/notification.h" 14 #include "chrome/browser/notifications/notification.h"
14 #include "chrome/browser/prefs/pref_service.h"
15 #include "chrome/common/chrome_notification_types.h" 15 #include "chrome/common/chrome_notification_types.h"
16 #include "chrome/common/pref_names.h" 16 #include "chrome/common/pref_names.h"
17 #include "content/public/browser/notification_service.h" 17 #include "content/public/browser/notification_service.h"
18 18
19 namespace { 19 namespace {
20 const int kUserStatePollingIntervalSeconds = 1; 20 const int kUserStatePollingIntervalSeconds = 1;
21 } 21 }
22 22
23 // A class which represents a notification waiting to be shown. 23 // A class which represents a notification waiting to be shown.
24 class QueuedNotification { 24 class QueuedNotification {
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 void NotificationUIManagerImpl::Observe( 194 void NotificationUIManagerImpl::Observe(
195 int type, 195 int type,
196 const content::NotificationSource& source, 196 const content::NotificationSource& source,
197 const content::NotificationDetails& details) { 197 const content::NotificationDetails& details) {
198 if (type == chrome::NOTIFICATION_APP_TERMINATING) { 198 if (type == chrome::NOTIFICATION_APP_TERMINATING) {
199 CancelAll(); 199 CancelAll();
200 } else { 200 } else {
201 NOTREACHED(); 201 NOTREACHED();
202 } 202 }
203 } 203 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698