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

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

Issue 1308313003: Componentize chrome/common/sync_util (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/glue/local_device_info_provider_impl.cc
diff --git a/chrome/browser/sync/glue/local_device_info_provider_impl.cc b/chrome/browser/sync/glue/local_device_info_provider_impl.cc
index 329cbaae3f7a575cf3956f1c098528af401af9ea..282814bcad3c4ff4dce91926570570e7ef09277c 100644
--- a/chrome/browser/sync/glue/local_device_info_provider_impl.cc
+++ b/chrome/browser/sync/glue/local_device_info_provider_impl.cc
@@ -5,7 +5,7 @@
#include "base/bind.h"
#include "chrome/browser/sync/glue/local_device_info_provider_impl.h"
#include "chrome/common/channel_info.h"
-#include "chrome/common/sync_util.h"
+#include "components/sync_driver/sync_util.h"
#include "content/public/browser/browser_thread.h"
#include "sync/util/get_session_name.h"
#include "ui/base/device_form_factor.h"
@@ -53,14 +53,14 @@ LocalDeviceInfoProviderImpl::GetLocalDeviceInfo() const {
std::string LocalDeviceInfoProviderImpl::GetSyncUserAgent() const {
#if !defined(OS_CHROMEOS) && !defined(OS_ANDROID)
- return MakeDesktopUserAgentForSync();
+ return MakeDesktopUserAgentForSync(chrome::GetChannel());
#elif defined(OS_CHROMEOS)
- return MakeUserAgentForSync("CROS ");
+ return MakeUserAgentForSync("CROS ", chrome::GetChannel());
#elif defined(OS_ANDROID)
if (IsTabletUI()) {
- return MakeUserAgentForSync("ANDROID-TABLET ");
+ return MakeUserAgentForSync("ANDROID-TABLET ", chrome::GetChannel());
} else {
- return MakeUserAgentForSync("ANDROID-PHONE ");
+ return MakeUserAgentForSync("ANDROID-PHONE ", chrome::GetChannel());
}
#endif
}
« no previous file with comments | « chrome/browser/sync/backup_rollback_controller_unittest.cc ('k') | chrome/browser/sync/glue/sync_backend_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698