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

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

Issue 10823212: Relanding this as this did not fix the chromiumos breakage. (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
Index: chrome/browser/policy/auto_enrollment_client.cc
===================================================================
--- chrome/browser/policy/auto_enrollment_client.cc (revision 150399)
+++ chrome/browser/policy/auto_enrollment_client.cc (working copy)
@@ -111,15 +111,12 @@
// static
AutoEnrollmentClient* AutoEnrollmentClient::Create(
const base::Closure& completion_callback) {
- CommandLine* command_line = CommandLine::ForCurrentProcess();
-
// The client won't do anything if |service| is NULL.
DeviceManagementService* service = NULL;
if (IsDisabled()) {
VLOG(1) << "Auto-enrollment is disabled";
} else {
- std::string url =
- command_line->GetSwitchValueASCII(switches::kDeviceManagementUrl);
+ std::string url = BrowserPolicyConnector::GetDeviceManagementUrl();
if (!url.empty()) {
service = new DeviceManagementService(url);
service->ScheduleInitialization(0);
« no previous file with comments | « chrome/browser/chromeos/login/policy_oauth_fetcher.cc ('k') | chrome/browser/policy/browser_policy_connector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698