Index: chrome/browser/chrome_to_mobile_service.cc |
diff --git a/chrome/browser/chrome_to_mobile_service.cc b/chrome/browser/chrome_to_mobile_service.cc |
index 34afa32f246c0e47cdf43aff2b635e0c64a2ea4f..caf08aef9fb403d9c906532251a1e92bad3b568d 100644 |
--- a/chrome/browser/chrome_to_mobile_service.cc |
+++ b/chrome/browser/chrome_to_mobile_service.cc |
@@ -383,6 +383,8 @@ void ChromeToMobileService::OnIncomingNotification( |
ipc::invalidation::ObjectSource::CHROME_COMPONENTS, |
kSyncInvalidationObjectIdChromeToMobileDeviceList)), 1U); |
RequestDeviceSearch(); |
+ // TODO(msw|akalin): This may not necessarily mean notifications are enabled. |
+ OnNotificationsEnabled(); |
} |
const std::string& ChromeToMobileService::GetAccessTokenForTest() const { |
@@ -509,7 +511,6 @@ void ChromeToMobileService::RequestAccessToken() { |
} |
void ChromeToMobileService::RequestDeviceSearch() { |
- DCHECK(sync_invalidation_enabled_); |
if (access_token_.empty()) { |
// Enqueue this task to perform after obtaining an access token. |
task_queue_.push(base::Bind(&ChromeToMobileService::RequestDeviceSearch, |