diff options
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/sync/engine/syncer_thread.cc | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/chrome/browser/sync/engine/syncer_thread.cc b/chrome/browser/sync/engine/syncer_thread.cc index c26be91..66c412b 100644 --- a/chrome/browser/sync/engine/syncer_thread.cc +++ b/chrome/browser/sync/engine/syncer_thread.cc @@ -633,15 +633,11 @@ void SyncerThread::HandleTalkMediatorEvent(const TalkMediatorEvent& event) { p2p_subscribed_ = false; break; case TalkMediatorEvent::NOTIFICATION_RECEIVED: - // Check if the service url is a sync URL. An empty service URL - // is treated as a legacy sync notification. - if (event.notification_data.service_url.empty() || - (event.notification_data.service_url == kSyncLegacyServiceUrl) || - (event.notification_data.service_url == kSyncServiceUrl)) { - LOG(INFO) << "P2P: Updates on server, pushing syncer"; - if (NULL != vault_.syncer_) { - NudgeSyncImpl(0, kNotification); - } + // TODO(sanjeevr): Check if the service url is a sync URL. + // An empty service URL is treated as a legacy sync notification. + LOG(INFO) << "P2P: Updates on server, pushing syncer"; + if (NULL != vault_.syncer_) { + NudgeSyncImpl(0, kNotification); } break; default: |