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

Unified Diff: chrome/browser/policy/cloud_policy_subsystem.cc

Issue 10823208: Reverting this as it causes browser tests on the Linux ChromiumOS builder to fail. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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/policy/cloud_policy_subsystem.h ('k') | chrome/browser/policy/config_dir_policy_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/cloud_policy_subsystem.cc
===================================================================
--- chrome/browser/policy/cloud_policy_subsystem.cc (revision 150390)
+++ chrome/browser/policy/cloud_policy_subsystem.cc (working copy)
@@ -50,8 +50,13 @@
CloudPolicySubsystem::CloudPolicySubsystem(
CloudPolicyDataStore* data_store,
- CloudPolicyCacheBase* policy_cache,
- const std::string& device_management_url) {
+ CloudPolicyCacheBase* policy_cache) {
+ std::string device_management_url;
+ CommandLine* command_line = CommandLine::ForCurrentProcess();
+ if (command_line->HasSwitch(switches::kDeviceManagementUrl)) {
+ device_management_url =
+ command_line->GetSwitchValueASCII(switches::kDeviceManagementUrl);
+ }
Initialize(data_store, policy_cache, device_management_url);
}
« no previous file with comments | « chrome/browser/policy/cloud_policy_subsystem.h ('k') | chrome/browser/policy/config_dir_policy_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698