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

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

Issue 2203673002: [Sync] Move //components/sync_driver to //components/sync/driver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sd-a
Patch Set: Full change rebased on static lib. 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 (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" 5 #include "components/sync/driver/device_info.h"
6 6
7 #include "base/values.h" 7 #include "base/values.h"
8 8
9 namespace sync_driver { 9 namespace sync_driver {
10 10
11 DeviceInfo::DeviceInfo(const std::string& guid, 11 DeviceInfo::DeviceInfo(const std::string& guid,
12 const std::string& client_name, 12 const std::string& client_name,
13 const std::string& chrome_version, 13 const std::string& chrome_version,
14 const std::string& sync_user_agent, 14 const std::string& sync_user_agent,
15 const sync_pb::SyncEnums::DeviceType device_type, 15 const sync_pb::SyncEnums::DeviceType device_type,
16 const std::string& signin_scoped_device_id) 16 const std::string& signin_scoped_device_id)
17 : guid_(guid), 17 : guid_(guid),
18 client_name_(client_name), 18 client_name_(client_name),
19 chrome_version_(chrome_version), 19 chrome_version_(chrome_version),
20 sync_user_agent_(sync_user_agent), 20 sync_user_agent_(sync_user_agent),
21 device_type_(device_type), 21 device_type_(device_type),
22 signin_scoped_device_id_(signin_scoped_device_id) { 22 signin_scoped_device_id_(signin_scoped_device_id) {}
23 }
24 23
25 DeviceInfo::~DeviceInfo() { } 24 DeviceInfo::~DeviceInfo() {}
26 25
27 const std::string& DeviceInfo::guid() const { 26 const std::string& DeviceInfo::guid() const {
28 return guid_; 27 return guid_;
29 } 28 }
30 29
31 const std::string& DeviceInfo::client_name() const { 30 const std::string& DeviceInfo::client_name() const {
32 return client_name_; 31 return client_name_;
33 } 32 }
34 33
35 const std::string& DeviceInfo::chrome_version() const { 34 const std::string& DeviceInfo::chrome_version() const {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 value->SetString("type", GetDeviceTypeString()); 104 value->SetString("type", GetDeviceTypeString());
106 value->SetString("chromeVersion", chrome_version_); 105 value->SetString("chromeVersion", chrome_version_);
107 return value; 106 return value;
108 } 107 }
109 108
110 void DeviceInfo::set_public_id(const std::string& id) { 109 void DeviceInfo::set_public_id(const std::string& id) {
111 public_id_ = id; 110 public_id_ = id;
112 } 111 }
113 112
114 } // namespace sync_driver 113 } // namespace sync_driver
OLDNEW
« no previous file with comments | « components/sync/driver/device_info.h ('k') | components/sync/driver/device_info_data_type_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698