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

Side by Side Diff: components/sync_driver/local_device_info_provider_impl.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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_driver/local_device_info_provider_impl.h" 5 #include "components/sync_driver/local_device_info_provider_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/task_runner.h" 8 #include "base/task_runner.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "components/sync/base/get_session_name.h"
10 #include "components/sync_driver/sync_util.h" 11 #include "components/sync_driver/sync_util.h"
11 #include "sync/util/get_session_name.h"
12 12
13 namespace browser_sync { 13 namespace browser_sync {
14 14
15 namespace { 15 namespace {
16 16
17 sync_pb::SyncEnums::DeviceType GetLocalDeviceType(bool is_tablet) { 17 sync_pb::SyncEnums::DeviceType GetLocalDeviceType(bool is_tablet) {
18 #if defined(OS_CHROMEOS) 18 #if defined(OS_CHROMEOS)
19 return sync_pb::SyncEnums_DeviceType_TYPE_CROS; 19 return sync_pb::SyncEnums_DeviceType_TYPE_CROS;
20 #elif defined(OS_LINUX) 20 #elif defined(OS_LINUX)
21 return sync_pb::SyncEnums_DeviceType_TYPE_LINUX; 21 return sync_pb::SyncEnums_DeviceType_TYPE_LINUX;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 callback_list_.Notify(); 103 callback_list_.Notify();
104 } 104 }
105 105
106 void LocalDeviceInfoProviderImpl::Clear() { 106 void LocalDeviceInfoProviderImpl::Clear() {
107 DCHECK(CalledOnValidThread()); 107 DCHECK(CalledOnValidThread());
108 cache_guid_ = ""; 108 cache_guid_ = "";
109 local_device_info_.reset(); 109 local_device_info_.reset();
110 } 110 }
111 111
112 } // namespace browser_sync 112 } // namespace browser_sync
OLDNEW
« no previous file with comments | « components/sync_driver/invalidation_helper.h ('k') | components/sync_driver/local_device_info_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698