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

Unified Diff: chrome/browser/policy/cloud/user_policy_signin_service_base.cc

Issue 191093002: Simplify the user agent code some more since after r255534 it's not affected by the site's URL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: patchset 15 which works Created 6 years, 9 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/net/preconnect.cc ('k') | chrome/browser/profile_resetter/resettable_settings_snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/cloud/user_policy_signin_service_base.cc
===================================================================
--- chrome/browser/policy/cloud/user_policy_signin_service_base.cc (revision 255867)
+++ chrome/browser/policy/cloud/user_policy_signin_service_base.cc (working copy)
@@ -11,6 +11,7 @@
#include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h"
#include "chrome/browser/signin/signin_manager.h"
#include "chrome/browser/signin/signin_manager_factory.h"
+#include "chrome/common/chrome_content_client.h"
#include "chrome/common/chrome_switches.h"
#include "components/policy/core/browser/browser_policy_connector.h"
#include "components/policy/core/common/cloud/device_management_service.h"
@@ -18,7 +19,6 @@
#include "components/policy/core/common/cloud/user_cloud_policy_manager.h"
#include "components/policy/core/common/cloud/user_policy_request_context.h"
#include "content/public/browser/notification_source.h"
-#include "content/public/common/content_client.h"
#include "net/url_request/url_request_context_getter.h"
namespace policy {
@@ -252,17 +252,14 @@
scoped_refptr<net::URLRequestContextGetter>
UserPolicySigninServiceBase::CreateSystemRequestContext() {
return new SystemPolicyRequestContext(
- system_request_context(),
- content::GetUserAgent(GURL(device_management_service_->GetServerUrl())));
+ system_request_context(), GetUserAgent());
}
scoped_refptr<net::URLRequestContextGetter>
UserPolicySigninServiceBase::CreateUserRequestContext(
scoped_refptr<net::URLRequestContextGetter> profile_request_context) {
return new UserPolicyRequestContext(
- profile_request_context,
- system_request_context(),
- content::GetUserAgent(GURL(device_management_service_->GetServerUrl())));
+ profile_request_context, system_request_context(), GetUserAgent());
}
} // namespace policy
« no previous file with comments | « chrome/browser/net/preconnect.cc ('k') | chrome/browser/profile_resetter/resettable_settings_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698