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

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

Issue 7342047: Cleanup base/stl_util (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed unneeded include + rebase Created 9 years, 5 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) 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 #include "chrome/browser/notifications/notification_ui_manager.h" 5 #include "chrome/browser/notifications/notification_ui_manager.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/stl_util-inl.h" 9 #include "base/stl_util.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
11 #include "chrome/browser/fullscreen.h" 11 #include "chrome/browser/fullscreen.h"
12 #include "chrome/browser/idle.h" 12 #include "chrome/browser/idle.h"
13 #include "chrome/browser/notifications/balloon_collection.h" 13 #include "chrome/browser/notifications/balloon_collection.h"
14 #include "chrome/browser/notifications/notification.h" 14 #include "chrome/browser/notifications/notification.h"
15 #include "chrome/browser/prefs/pref_service.h" 15 #include "chrome/browser/prefs/pref_service.h"
16 #include "chrome/common/chrome_notification_types.h" 16 #include "chrome/common/chrome_notification_types.h"
17 #include "chrome/common/pref_names.h" 17 #include "chrome/common/pref_names.h"
18 #include "content/browser/site_instance.h" 18 #include "content/browser/site_instance.h"
19 #include "content/common/notification_service.h" 19 #include "content/common/notification_service.h"
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 } else if (type == chrome::NOTIFICATION_PREF_CHANGED) { 240 } else if (type == chrome::NOTIFICATION_PREF_CHANGED) {
241 std::string* name = Details<std::string>(details).ptr(); 241 std::string* name = Details<std::string>(details).ptr();
242 if (*name == prefs::kDesktopNotificationPosition) 242 if (*name == prefs::kDesktopNotificationPosition)
243 balloon_collection_->SetPositionPreference( 243 balloon_collection_->SetPositionPreference(
244 static_cast<BalloonCollection::PositionPreference>( 244 static_cast<BalloonCollection::PositionPreference>(
245 position_pref_.GetValue())); 245 position_pref_.GetValue()));
246 } else { 246 } else {
247 NOTREACHED(); 247 NOTREACHED();
248 } 248 }
249 } 249 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698