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

Side by Side Diff: chrome/browser/policy/cloud/user_policy_signin_service_base.cc

Issue 99433004: Add a header when fetching pages under the DMServer URL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changed per willchan's feedback Created 7 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/policy/cloud/user_policy_signin_service_base.h" 5 #include "chrome/browser/policy/cloud/user_policy_signin_service_base.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "chrome/browser/chrome_notification_types.h" 10 #include "chrome/browser/chrome_notification_types.h"
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 } 256 }
257 257
258 SigninManager* UserPolicySigninServiceBase::GetSigninManager() { 258 SigninManager* UserPolicySigninServiceBase::GetSigninManager() {
259 return SigninManagerFactory::GetForProfile(profile_); 259 return SigninManagerFactory::GetForProfile(profile_);
260 } 260 }
261 261
262 scoped_refptr<net::URLRequestContextGetter> 262 scoped_refptr<net::URLRequestContextGetter>
263 UserPolicySigninServiceBase::CreateSystemRequestContext() { 263 UserPolicySigninServiceBase::CreateSystemRequestContext() {
264 return new SystemPolicyRequestContext( 264 return new SystemPolicyRequestContext(
265 system_request_context(), 265 system_request_context(),
266 content::GetUserAgent(GURL(device_management_service_->GetServerURL()))); 266 content::GetUserAgent(GURL(device_management_service_->GetServerUrl())));
267 } 267 }
268 268
269 scoped_refptr<net::URLRequestContextGetter> 269 scoped_refptr<net::URLRequestContextGetter>
270 UserPolicySigninServiceBase::CreateUserRequestContext() { 270 UserPolicySigninServiceBase::CreateUserRequestContext() {
271 return new UserPolicyRequestContext( 271 return new UserPolicyRequestContext(
272 profile_->GetRequestContext(), 272 profile_->GetRequestContext(),
273 system_request_context(), 273 system_request_context(),
274 content::GetUserAgent(GURL(device_management_service_->GetServerURL()))); 274 content::GetUserAgent(GURL(device_management_service_->GetServerUrl())));
275 } 275 }
276 276
277 } // namespace policy 277 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698