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

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

Issue 1549993003: Switch to standard integer types in components/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 "components/sync_driver/sync_util.h" 10 #include "components/sync_driver/sync_util.h"
10 #include "sync/util/get_session_name.h" 11 #include "sync/util/get_session_name.h"
11 12
12 namespace browser_sync { 13 namespace browser_sync {
13 14
14 namespace { 15 namespace {
15 16
16 sync_pb::SyncEnums::DeviceType GetLocalDeviceType(bool is_tablet) { 17 sync_pb::SyncEnums::DeviceType GetLocalDeviceType(bool is_tablet) {
17 #if defined(OS_CHROMEOS) 18 #if defined(OS_CHROMEOS)
18 return sync_pb::SyncEnums_DeviceType_TYPE_CROS; 19 return sync_pb::SyncEnums_DeviceType_TYPE_CROS;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 const std::string& session_name) { 100 const std::string& session_name) {
100 local_device_info_.reset(new sync_driver::DeviceInfo( 101 local_device_info_.reset(new sync_driver::DeviceInfo(
101 guid, session_name, version_, GetSyncUserAgent(), 102 guid, session_name, version_, GetSyncUserAgent(),
102 GetLocalDeviceType(is_tablet_), signin_scoped_device_id)); 103 GetLocalDeviceType(is_tablet_), signin_scoped_device_id));
103 104
104 // Notify observers. 105 // Notify observers.
105 callback_list_.Notify(); 106 callback_list_.Notify();
106 } 107 }
107 108
108 } // namespace browser_sync 109 } // namespace browser_sync
OLDNEW
« no previous file with comments | « components/sync_driver/invalidation_adapter.cc ('k') | components/sync_driver/model_association_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698