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

Side by Side Diff: components/sync/device_info/device_info_data_type_controller.cc

Issue 2387553002: [Sync] Removing duplicated includes between cc and h files. (Closed)
Patch Set: Fixing DataTypeStatusTable Created 4 years, 2 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/sync/device_info/device_info_data_type_controller.h" 5 #include "components/sync/device_info/device_info_data_type_controller.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "components/sync/device_info/local_device_info_provider.h"
9 8
10 namespace sync_driver { 9 namespace sync_driver {
11 10
12 DeviceInfoDataTypeController::DeviceInfoDataTypeController( 11 DeviceInfoDataTypeController::DeviceInfoDataTypeController(
13 const base::Closure& dump_stack, 12 const base::Closure& dump_stack,
14 SyncClient* sync_client, 13 SyncClient* sync_client,
15 LocalDeviceInfoProvider* local_device_info_provider) 14 LocalDeviceInfoProvider* local_device_info_provider)
16 : UIDataTypeController(syncer::DEVICE_INFO, dump_stack, sync_client), 15 : UIDataTypeController(syncer::DEVICE_INFO, dump_stack, sync_client),
17 local_device_info_provider_(local_device_info_provider) {} 16 local_device_info_provider_(local_device_info_provider) {}
18 17
(...skipping 21 matching lines...) Expand all
40 void DeviceInfoDataTypeController::OnLocalDeviceInfoLoaded() { 39 void DeviceInfoDataTypeController::OnLocalDeviceInfoLoaded() {
41 DCHECK(CalledOnValidThread()); 40 DCHECK(CalledOnValidThread());
42 DCHECK_EQ(state_, MODEL_STARTING); 41 DCHECK_EQ(state_, MODEL_STARTING);
43 DCHECK(local_device_info_provider_->GetLocalDeviceInfo()); 42 DCHECK(local_device_info_provider_->GetLocalDeviceInfo());
44 43
45 subscription_.reset(); 44 subscription_.reset();
46 OnModelLoaded(); 45 OnModelLoaded();
47 } 46 }
48 47
49 } // namespace sync_driver 48 } // namespace sync_driver
OLDNEW
« no previous file with comments | « components/sync/core_impl/sync_manager_impl.cc ('k') | components/sync/device_info/device_info_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698