Chromium Code Reviews| 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..f40eb1adfe900bfd3cb4afe1f040fb018bfd1e96 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 |
| @@ -98,15 +98,10 @@ scoped_ptr<GCMDriver> CreateGCMDriverDesktop( |
| base::SequencedWorkerPool::SKIP_ON_SHUTDOWN)); |
| return scoped_ptr<GCMDriver>(new GCMDriverDesktop( |
| - gcm_client_factory.Pass(), |
| - GetChromeBuildInfo(), |
| - GetChannelStatusRequestUrl(), |
| - GetUserAgent(), |
| - prefs, |
| - store_path, |
| - request_context, |
| - content::BrowserThread::GetMessageLoopProxyForThread( |
| - content::BrowserThread::UI), |
| + gcm_client_factory.Pass(), GetChromeBuildInfo(), |
| + GetChannelStatusRequestUrl(), GetUserAgent(), prefs, store_path, |
| + request_context, content::BrowserThread::GetMessageLoopProxyForThread( |
| + content::BrowserThread::UI), |
|
Nicolas Zea
2015/08/27 18:16:16
Did clang-format do this? Looks odd
Jitu( very slow this week)
2015/08/28 05:52:43
Yes,
Done
|
| content::BrowserThread::GetMessageLoopProxyForThread( |
| content::BrowserThread::IO), |
| blocking_task_runner)); |