| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |