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

Unified Diff: components/sync_driver/device_info.cc

Issue 597423002: Device info datatype should be moved to components/sync_driver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor CR feedback addressed. 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
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync_driver/device_info.cc
diff --git a/chrome/browser/sync/glue/device_info.cc b/components/sync_driver/device_info.cc
similarity index 90%
rename from chrome/browser/sync/glue/device_info.cc
rename to components/sync_driver/device_info.cc
index 8d07eeabd293ff94b5a1067390717c36359979db..c80a1571c964640a6c00ea74fe10939a90f6275c 100644
--- a/chrome/browser/sync/glue/device_info.cc
+++ b/components/sync_driver/device_info.cc
@@ -3,11 +3,9 @@
// found in the LICENSE file.
#include "base/values.h"
-#include "chrome/browser/sync/glue/device_info.h"
-#include "content/public/browser/browser_thread.h"
-#include "sync/util/get_session_name.h"
+#include "components/sync_driver/device_info.h"
-namespace browser_sync {
+namespace sync_driver {
DeviceInfo::DeviceInfo(const std::string& guid,
const std::string& client_name,
@@ -112,9 +110,4 @@ void DeviceInfo::set_public_id(std::string id) {
public_id_ = id;
}
-// static.
-void DeviceInfo::GetClientName(const GetClientNameCallback& callback) {
- syncer::GetSessionName(content::BrowserThread::GetBlockingPool(), callback);
-}
-
-} // namespace browser_sync
+} // namespace sync_driver
« 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