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

Unified Diff: chrome/browser/sync/glue/device_info.cc

Issue 566623003: Refactor syncable DEVICE_INFO type from ChangeProcessor to SyncableService - part 3. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Unit test fixes Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/glue/device_info.cc
diff --git a/chrome/browser/sync/glue/device_info.cc b/chrome/browser/sync/glue/device_info.cc
index f3ea3602ddef8da4ffd64053a8f20d651f4c4f5f..f477dd8958af265bbbb40ff408475fde413372c3 100644
--- a/chrome/browser/sync/glue/device_info.cc
+++ b/chrome/browser/sync/glue/device_info.cc
@@ -60,6 +60,15 @@ DeviceInfo::DeviceInfo(const std::string& guid,
DeviceInfo::~DeviceInfo() { }
+DeviceInfo* DeviceInfo::Clone() const {
+ return new DeviceInfo(guid(),
+ client_name(),
+ chrome_version(),
+ sync_user_agent(),
+ device_type(),
+ signin_scoped_device_id());
+}
+
const std::string& DeviceInfo::guid() const {
return guid_;
}

Powered by Google App Engine
This is Rietveld 408576698