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

Side by Side Diff: chrome/browser/sync/glue/android_invalidator_bridge.cc

Issue 12847003: Separate invalidator and sync client ID (part 2/2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix sync_listen_notifications utility Created 7 years, 9 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/sync/glue/android_invalidator_bridge.h" 5 #include "chrome/browser/sync/glue/android_invalidator_bridge.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 167
168 void AndroidInvalidatorBridge::Acknowledge( 168 void AndroidInvalidatorBridge::Acknowledge(
169 const invalidation::ObjectId& id, const syncer::AckHandle& ack_handle) { 169 const invalidation::ObjectId& id, const syncer::AckHandle& ack_handle) {
170 // Do nothing. 170 // Do nothing.
171 } 171 }
172 172
173 syncer::InvalidatorState AndroidInvalidatorBridge::GetInvalidatorState() const { 173 syncer::InvalidatorState AndroidInvalidatorBridge::GetInvalidatorState() const {
174 return syncer::INVALIDATIONS_ENABLED; 174 return syncer::INVALIDATIONS_ENABLED;
175 } 175 }
176 176
177 void AndroidInvalidatorBridge::SetUniqueId(const std::string& unique_id) { }
178
179 void AndroidInvalidatorBridge::UpdateCredentials( 177 void AndroidInvalidatorBridge::UpdateCredentials(
180 const std::string& email, const std::string& token) { } 178 const std::string& email, const std::string& token) { }
181 179
182 void AndroidInvalidatorBridge::SendInvalidation( 180 void AndroidInvalidatorBridge::SendInvalidation(
183 const syncer::ObjectIdInvalidationMap& invalidation_map) { } 181 const syncer::ObjectIdInvalidationMap& invalidation_map) { }
184 182
185 bool AndroidInvalidatorBridge::IsHandlerRegisteredForTest( 183 bool AndroidInvalidatorBridge::IsHandlerRegisteredForTest(
186 syncer::InvalidationHandler* handler) const { 184 syncer::InvalidationHandler* handler) const {
187 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); 185 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread());
188 return core_->IsHandlerRegisteredForTest(handler); 186 return core_->IsHandlerRegisteredForTest(handler);
(...skipping 23 matching lines...) Expand all
212 FROM_HERE, 210 FROM_HERE,
213 base::Bind(&Core::EmitInvalidation, 211 base::Bind(&Core::EmitInvalidation,
214 core_, 212 core_,
215 ModelTypeInvalidationMapToObjectIdInvalidationMap( 213 ModelTypeInvalidationMapToObjectIdInvalidationMap(
216 invalidation_map)))) { 214 invalidation_map)))) {
217 NOTREACHED(); 215 NOTREACHED();
218 } 216 }
219 } 217 }
220 218
221 } // namespace browser_sync 219 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/android_invalidator_bridge.h ('k') | chrome/browser/sync/glue/android_invalidator_bridge_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698