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

Side by Side Diff: chrome/browser/chromeos/drive/drive_system_service.cc

Issue 12114012: Remove syncer::IncomingInvalidationSource (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove comment 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
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 "chrome/browser/chromeos/drive/drive_system_service.h" 5 #include "chrome/browser/chromeos/drive/drive_system_service.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/chromeos/drive/drive_download_handler.h" 10 #include "chrome/browser/chromeos/drive/drive_download_handler.h"
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 return true; 202 return true;
203 } 203 }
204 204
205 void DriveSystemService::OnInvalidatorStateChange( 205 void DriveSystemService::OnInvalidatorStateChange(
206 syncer::InvalidatorState state) { 206 syncer::InvalidatorState state) {
207 file_system_->SetPushNotificationEnabled( 207 file_system_->SetPushNotificationEnabled(
208 state == syncer::INVALIDATIONS_ENABLED); 208 state == syncer::INVALIDATIONS_ENABLED);
209 } 209 }
210 210
211 void DriveSystemService::OnIncomingInvalidation( 211 void DriveSystemService::OnIncomingInvalidation(
212 const syncer::ObjectIdInvalidationMap& invalidation_map, 212 const syncer::ObjectIdInvalidationMap& invalidation_map) {
213 syncer::IncomingInvalidationSource source) {
214 DCHECK_EQ(1U, invalidation_map.size()); 213 DCHECK_EQ(1U, invalidation_map.size());
215 const invalidation::ObjectId object_id( 214 const invalidation::ObjectId object_id(
216 ipc::invalidation::ObjectSource::COSMO_CHANGELOG, 215 ipc::invalidation::ObjectSource::COSMO_CHANGELOG,
217 kDriveInvalidationObjectId); 216 kDriveInvalidationObjectId);
218 DCHECK_EQ(1U, invalidation_map.count(object_id)); 217 DCHECK_EQ(1U, invalidation_map.count(object_id));
219 218
220 file_system_->CheckForUpdates(); 219 file_system_->CheckForUpdates();
221 } 220 }
222 221
223 void DriveSystemService::ClearCacheAndRemountFileSystem( 222 void DriveSystemService::ClearCacheAndRemountFileSystem(
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 if (factory_for_test_.is_null()) 414 if (factory_for_test_.is_null())
416 service = new DriveSystemService(profile, NULL, FilePath(), NULL); 415 service = new DriveSystemService(profile, NULL, FilePath(), NULL);
417 else 416 else
418 service = factory_for_test_.Run(profile); 417 service = factory_for_test_.Run(profile);
419 418
420 service->Initialize(); 419 service->Initialize();
421 return service; 420 return service;
422 } 421 }
423 422
424 } // namespace drive 423 } // namespace drive
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698