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

Side by Side Diff: sync/notifier/invalidator_factory.cc

Issue 12022041: Separate local and remote sync invalidations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 10 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
« no previous file with comments | « sync/internal_api/test/fake_sync_manager.cc ('k') | no next file » | 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) 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 "sync/notifier/invalidator_factory.h" 5 #include "sync/notifier/invalidator_factory.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "jingle/notifier/listener/push_client.h" 10 #include "jingle/notifier/listener/push_client.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 invalidation_state_tracker->GetBootstrapData() : 55 invalidation_state_tracker->GetBootstrapData() :
56 std::string()), 56 std::string()),
57 invalidation_state_tracker_(invalidation_state_tracker) { 57 invalidation_state_tracker_(invalidation_state_tracker) {
58 } 58 }
59 59
60 InvalidatorFactory::~InvalidatorFactory() { 60 InvalidatorFactory::~InvalidatorFactory() {
61 } 61 }
62 62
63 Invalidator* InvalidatorFactory::CreateInvalidator() { 63 Invalidator* InvalidatorFactory::CreateInvalidator() {
64 #if defined(OS_ANDROID) 64 #if defined(OS_ANDROID)
65 // Android uses ChromeSyncNotificationBridge exclusively. 65 // Android uses AndroidInvalidatorBridge instead. See SyncManager
66 // initialization code in SyncBackendHost for more information.
66 return NULL; 67 return NULL;
67 #else 68 #else
68 return CreateDefaultInvalidator(notifier_options_, 69 return CreateDefaultInvalidator(notifier_options_,
69 initial_invalidation_state_map_, 70 initial_invalidation_state_map_,
70 invalidation_bootstrap_data_, 71 invalidation_bootstrap_data_,
71 invalidation_state_tracker_, 72 invalidation_state_tracker_,
72 client_info_); 73 client_info_);
73 #endif 74 #endif
74 } 75 }
75 } // namespace syncer 76 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/test/fake_sync_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698