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

Side by Side Diff: chrome/browser/sync/test/integration/fake_server_invalidation_service.cc

Issue 2461463002: [Sync] Replacing NULL with nullptr/null throughout sync code. (Closed)
Patch Set: Reverted PROFILE_nullptr mistake. Created 4 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 "chrome/browser/sync/test/integration/fake_server_invalidation_service. h" 5 #include "chrome/browser/sync/test/integration/fake_server_invalidation_service. h"
6 6
7 #include "components/invalidation/impl/invalidation_service_util.h" 7 #include "components/invalidation/impl/invalidation_service_util.h"
8 #include "components/invalidation/public/invalidation.h" 8 #include "components/invalidation/public/invalidation.h"
9 #include "components/invalidation/public/object_id_invalidation_map.h" 9 #include "components/invalidation/public/object_id_invalidation_map.h"
10 #include "components/sync/base/invalidation_helper.h" 10 #include "components/sync/base/invalidation_helper.h"
(...skipping 30 matching lines...) Expand all
41 const { 41 const {
42 return invalidator_registrar_.GetInvalidatorState(); 42 return invalidator_registrar_.GetInvalidatorState();
43 } 43 }
44 44
45 std::string FakeServerInvalidationService::GetInvalidatorClientId() const { 45 std::string FakeServerInvalidationService::GetInvalidatorClientId() const {
46 return client_id_; 46 return client_id_;
47 } 47 }
48 48
49 invalidation::InvalidationLogger* 49 invalidation::InvalidationLogger*
50 FakeServerInvalidationService::GetInvalidationLogger() { 50 FakeServerInvalidationService::GetInvalidationLogger() {
51 return NULL; 51 return nullptr;
52 } 52 }
53 53
54 void FakeServerInvalidationService::RequestDetailedStatus( 54 void FakeServerInvalidationService::RequestDetailedStatus(
55 base::Callback<void(const base::DictionaryValue&)> caller) const { 55 base::Callback<void(const base::DictionaryValue&)> caller) const {
56 base::DictionaryValue value; 56 base::DictionaryValue value;
57 caller.Run(value); 57 caller.Run(value);
58 } 58 }
59 59
60 IdentityProvider* FakeServerInvalidationService::GetIdentityProvider() { 60 IdentityProvider* FakeServerInvalidationService::GetIdentityProvider() {
61 return &identity_provider_; 61 return &identity_provider_;
(...skipping 19 matching lines...) Expand all
81 // invalidating all items of a given type. 81 // invalidating all items of a given type.
82 82
83 if (self_notify_ || client_id_ != committer_id) { 83 if (self_notify_ || client_id_ != committer_id) {
84 invalidation_map.Insert(syncer::Invalidation::InitUnknownVersion(*it)); 84 invalidation_map.Insert(syncer::Invalidation::InitUnknownVersion(*it));
85 } 85 }
86 } 86 }
87 invalidator_registrar_.DispatchInvalidationsToHandlers(invalidation_map); 87 invalidator_registrar_.DispatchInvalidationsToHandlers(invalidation_map);
88 } 88 }
89 89
90 } // namespace fake_server 90 } // namespace fake_server
OLDNEW
« no previous file with comments | « chrome/browser/sync/test/integration/bookmarks_helper.cc ('k') | chrome/browser/sync/test/integration/migration_watcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698