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

Side by Side Diff: chrome/browser/services/gcm/gcm_desktop_utils.cc

Issue 816403003: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years, 12 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 unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698