| 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 0d18d0362a465783fd509a1c275471e29cfac8c2..567803cd751df1efbfabdea46c917f9b36bb50c3 100644
|
| --- a/chrome/browser/chrome_to_mobile_service.cc
|
| +++ b/chrome/browser/chrome_to_mobile_service.cc
|
| @@ -480,6 +480,16 @@ void ChromeToMobileService::OnIncomingInvalidation(
|
| DCHECK_EQ(1U, invalidation_map.count(invalidation::ObjectId(
|
| ipc::invalidation::ObjectSource::CHROME_COMPONENTS,
|
| kSyncInvalidationObjectIdChromeToMobileDeviceList)));
|
| + // TODO(msw): Unit tests do not provide profiles; see http://crbug.com/122183
|
| + ProfileSyncService* profile_sync_service =
|
| + profile_ ? ProfileSyncServiceFactory::GetForProfile(profile_) : NULL;
|
| + if (profile_sync_service) {
|
| + // TODO(dcheng): Only acknowledge the invalidation once the device search
|
| + // has finished. http://crbug.com/156843.
|
| + profile_sync_service->AcknowledgeInvalidation(
|
| + invalidation_map.begin()->first,
|
| + invalidation_map.begin()->second.ack_handle);
|
| + }
|
| RequestDeviceSearch();
|
| }
|
|
|
|
|