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

Side by Side Diff: ui/message_center/message_center_impl.cc

Issue 2230183002: ui: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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
« no previous file with comments | « ui/gl/init/gl_factory.cc ('k') | ui/message_center/notification_list.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "ui/message_center/message_center_impl.h" 5 #include "ui/message_center/message_center_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <deque> 8 #include <deque>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 378
379 void MessageCenterImpl::AddObserver(MessageCenterObserver* observer) { 379 void MessageCenterImpl::AddObserver(MessageCenterObserver* observer) {
380 observer_list_.AddObserver(observer); 380 observer_list_.AddObserver(observer);
381 } 381 }
382 382
383 void MessageCenterImpl::RemoveObserver(MessageCenterObserver* observer) { 383 void MessageCenterImpl::RemoveObserver(MessageCenterObserver* observer) {
384 observer_list_.RemoveObserver(observer); 384 observer_list_.RemoveObserver(observer);
385 } 385 }
386 386
387 void MessageCenterImpl::AddNotificationBlocker(NotificationBlocker* blocker) { 387 void MessageCenterImpl::AddNotificationBlocker(NotificationBlocker* blocker) {
388 if (ContainsValue(blockers_, blocker)) 388 if (base::ContainsValue(blockers_, blocker))
389 return; 389 return;
390 390
391 blocker->AddObserver(this); 391 blocker->AddObserver(this);
392 blockers_.push_back(blocker); 392 blockers_.push_back(blocker);
393 } 393 }
394 394
395 void MessageCenterImpl::RemoveNotificationBlocker( 395 void MessageCenterImpl::RemoveNotificationBlocker(
396 NotificationBlocker* blocker) { 396 NotificationBlocker* blocker) {
397 std::vector<NotificationBlocker*>::iterator iter = 397 std::vector<NotificationBlocker*>::iterator iter =
398 std::find(blockers_.begin(), blockers_.end(), blocker); 398 std::find(blockers_.begin(), blockers_.end(), blocker);
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
901 } 901 }
902 902
903 void MessageCenterImpl::EnableChangeQueueForTest(bool enable) { 903 void MessageCenterImpl::EnableChangeQueueForTest(bool enable) {
904 if (enable) 904 if (enable)
905 notification_queue_.reset(new internal::ChangeQueue()); 905 notification_queue_.reset(new internal::ChangeQueue());
906 else 906 else
907 notification_queue_.reset(); 907 notification_queue_.reset();
908 } 908 }
909 909
910 } // namespace message_center 910 } // namespace message_center
OLDNEW
« no previous file with comments | « ui/gl/init/gl_factory.cc ('k') | ui/message_center/notification_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698