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

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

Issue 1408123003: [Sync] Initial USS service implementation for DeviceInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated for Stan's comments. Created 5 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
« no previous file with comments | « components/sync_driver/BUILD.gn ('k') | components/sync_driver/device_info_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "components/sync_driver/device_info.h"
6
5 #include "base/values.h" 7 #include "base/values.h"
6 #include "components/sync_driver/device_info.h"
7 8
8 namespace sync_driver { 9 namespace sync_driver {
9 10
10 DeviceInfo::DeviceInfo(const std::string& guid, 11 DeviceInfo::DeviceInfo(const std::string& guid,
11 const std::string& client_name, 12 const std::string& client_name,
12 const std::string& chrome_version, 13 const std::string& chrome_version,
13 const std::string& sync_user_agent, 14 const std::string& sync_user_agent,
14 const sync_pb::SyncEnums::DeviceType device_type, 15 const sync_pb::SyncEnums::DeviceType device_type,
15 const std::string& signin_scoped_device_id) 16 const std::string& signin_scoped_device_id)
16 : guid_(guid), 17 : guid_(guid),
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 value->SetString("type", GetDeviceTypeString()); 105 value->SetString("type", GetDeviceTypeString());
105 value->SetString("chromeVersion", chrome_version_); 106 value->SetString("chromeVersion", chrome_version_);
106 return value; 107 return value;
107 } 108 }
108 109
109 void DeviceInfo::set_public_id(const std::string& id) { 110 void DeviceInfo::set_public_id(const std::string& id) {
110 public_id_ = id; 111 public_id_ = id;
111 } 112 }
112 113
113 } // namespace sync_driver 114 } // namespace sync_driver
OLDNEW
« no previous file with comments | « components/sync_driver/BUILD.gn ('k') | components/sync_driver/device_info_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698