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

Side by Side Diff: components/invalidation/invalidation_logger.cc

Issue 697953002: ObserverList::HasObserver now takes a const pointer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile errors (ChromeOS unit tests). Created 6 years, 1 month 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/invalidation/invalidation_logger.h" 5 #include "components/invalidation/invalidation_logger.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "components/invalidation/invalidation_handler.h" 9 #include "components/invalidation/invalidation_handler.h"
10 #include "components/invalidation/invalidation_logger_observer.h" 10 #include "components/invalidation/invalidation_logger_observer.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 InvalidationLoggerObserver* debug_observer) { 109 InvalidationLoggerObserver* debug_observer) {
110 observer_list_.AddObserver(debug_observer); 110 observer_list_.AddObserver(debug_observer);
111 } 111 }
112 112
113 void InvalidationLogger::UnregisterObserver( 113 void InvalidationLogger::UnregisterObserver(
114 InvalidationLoggerObserver* debug_observer) { 114 InvalidationLoggerObserver* debug_observer) {
115 observer_list_.RemoveObserver(debug_observer); 115 observer_list_.RemoveObserver(debug_observer);
116 } 116 }
117 117
118 bool InvalidationLogger::IsObserverRegistered( 118 bool InvalidationLogger::IsObserverRegistered(
119 InvalidationLoggerObserver* debug_observer) { 119 const InvalidationLoggerObserver* debug_observer) const {
120 return observer_list_.HasObserver(debug_observer); 120 return observer_list_.HasObserver(debug_observer);
121 } 121 }
122 } // namespace invalidation 122 } // namespace invalidation
OLDNEW
« no previous file with comments | « components/invalidation/invalidation_logger.h ('k') | components/invalidation/invalidator_registrar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698