OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/services/gcm/gcm_desktop_utils.h" | 5 #include "chrome/browser/services/gcm/gcm_desktop_utils.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/sequenced_task_runner.h" | 9 #include "base/sequenced_task_runner.h" |
10 #include "base/threading/sequenced_worker_pool.h" | 10 #include "base/threading/sequenced_worker_pool.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 GCMClient::ChromeBuildInfo GetChromeBuildInfo() { | 69 GCMClient::ChromeBuildInfo GetChromeBuildInfo() { |
70 GCMClient::ChromeBuildInfo chrome_build_info; | 70 GCMClient::ChromeBuildInfo chrome_build_info; |
71 chrome_build_info.platform = GetPlatform(); | 71 chrome_build_info.platform = GetPlatform(); |
72 chrome_build_info.channel = GetChannel(); | 72 chrome_build_info.channel = GetChannel(); |
73 chrome_build_info.version = GetVersion(); | 73 chrome_build_info.version = GetVersion(); |
74 return chrome_build_info; | 74 return chrome_build_info; |
75 } | 75 } |
76 | 76 |
77 std::string GetChannelStatusRequestUrl() { | 77 std::string GetChannelStatusRequestUrl() { |
78 GURL sync_url( | 78 GURL sync_url(ProfileSyncService::GetSyncServiceURL( |
79 ProfileSyncService::GetSyncServiceURL(*CommandLine::ForCurrentProcess())); | 79 *base::CommandLine::ForCurrentProcess())); |
80 return sync_url.spec() + kChannelStatusRelativePath; | 80 return sync_url.spec() + kChannelStatusRelativePath; |
81 } | 81 } |
82 | 82 |
83 std::string GetUserAgent() { | 83 std::string GetUserAgent() { |
84 chrome::VersionInfo version_info; | 84 chrome::VersionInfo version_info; |
85 return browser_sync::LocalDeviceInfoProviderImpl::MakeUserAgentForSyncApi( | 85 return browser_sync::LocalDeviceInfoProviderImpl::MakeUserAgentForSyncApi( |
86 version_info); | 86 version_info); |
87 } | 87 } |
88 | 88 |
89 } // namespace | 89 } // namespace |
(...skipping 18 matching lines...) Expand all Loading... |
108 store_path, | 108 store_path, |
109 request_context, | 109 request_context, |
110 content::BrowserThread::GetMessageLoopProxyForThread( | 110 content::BrowserThread::GetMessageLoopProxyForThread( |
111 content::BrowserThread::UI), | 111 content::BrowserThread::UI), |
112 content::BrowserThread::GetMessageLoopProxyForThread( | 112 content::BrowserThread::GetMessageLoopProxyForThread( |
113 content::BrowserThread::IO), | 113 content::BrowserThread::IO), |
114 blocking_task_runner)); | 114 blocking_task_runner)); |
115 } | 115 } |
116 | 116 |
117 } // namespace gcm | 117 } // namespace gcm |
OLD | NEW |