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

Unified Diff: chrome/browser/services/gcm/gcm_desktop_utils.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
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/sync/backup_rollback_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/services/gcm/gcm_desktop_utils.cc
diff --git a/chrome/browser/services/gcm/gcm_desktop_utils.cc b/chrome/browser/services/gcm/gcm_desktop_utils.cc
index b15dd9f78790906ab2c428946f7ec3248a845fca..206d875a1373653773c595afbf10c9ea4756391b 100644
--- a/chrome/browser/services/gcm/gcm_desktop_utils.cc
+++ b/chrome/browser/services/gcm/gcm_desktop_utils.cc
@@ -7,12 +7,11 @@
#include "base/command_line.h"
#include "base/sequenced_task_runner.h"
#include "base/threading/sequenced_worker_pool.h"
-#include "chrome/browser/services/gcm/gcm_desktop_utils.h"
#include "chrome/common/channel_info.h"
-#include "chrome/common/sync_util.h"
#include "components/gcm_driver/gcm_client_factory.h"
#include "components/gcm_driver/gcm_driver.h"
#include "components/gcm_driver/gcm_driver_desktop.h"
+#include "components/sync_driver/sync_util.h"
#include "components/version_info/version_info.h"
#include "content/public/browser/browser_thread.h"
#include "url/gurl.h"
@@ -74,12 +73,13 @@ GCMClient::ChromeBuildInfo GetChromeBuildInfo() {
}
std::string GetChannelStatusRequestUrl() {
- GURL sync_url(GetSyncServiceURL(*base::CommandLine::ForCurrentProcess()));
+ GURL sync_url(GetSyncServiceURL(*base::CommandLine::ForCurrentProcess(),
+ chrome::GetChannel()));
return sync_url.spec() + kChannelStatusRelativePath;
}
std::string GetUserAgent() {
- return MakeDesktopUserAgentForSync();
+ return MakeDesktopUserAgentForSync(chrome::GetChannel());
}
} // namespace
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/sync/backup_rollback_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698