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

Unified Diff: chrome/browser/chromeos/policy/device_local_account_policy_service.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
Index: chrome/browser/chromeos/policy/device_local_account_policy_service.cc
===================================================================
--- chrome/browser/chromeos/policy/device_local_account_policy_service.cc (revision 255867)
+++ chrome/browser/chromeos/policy/device_local_account_policy_service.cc (working copy)
@@ -21,6 +21,7 @@
#include "chrome/browser/chromeos/policy/device_local_account_external_data_service.h"
#include "chrome/browser/chromeos/policy/device_local_account_policy_store.h"
#include "chrome/browser/chromeos/settings/device_settings_service.h"
+#include "chrome/common/chrome_content_client.h"
#include "chromeos/chromeos_paths.h"
#include "chromeos/dbus/session_manager_client.h"
#include "chromeos/settings/cros_settings_names.h"
@@ -30,7 +31,6 @@
#include "components/policy/core/common/cloud/cloud_policy_refresh_scheduler.h"
#include "components/policy/core/common/cloud/device_management_service.h"
#include "components/policy/core/common/cloud/system_policy_request_context.h"
-#include "content/public/common/content_client.h"
#include "net/url_request/url_request_context_getter.h"
#include "policy/policy_constants.h"
#include "policy/proto/device_management_backend.pb.h"
@@ -59,9 +59,7 @@
scoped_refptr<net::URLRequestContextGetter> request_context =
new SystemPolicyRequestContext(
- system_request_context,
- content::GetUserAgent(GURL(
- device_management_service->GetServerUrl())));
+ system_request_context, GetUserAgent());
scoped_ptr<CloudPolicyClient> client(
new CloudPolicyClient(std::string(), std::string(),

Powered by Google App Engine
This is Rietveld 408576698