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

Side by Side Diff: chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen.cc

Issue 9233008: Flag auto-enrollment register requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/policy/browser_policy_connector.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/chromeos/login/enrollment/enterprise_enrollment_screen. h" 5 #include "chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen. h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
11 #include "chrome/browser/browser_process.h" 11 #include "chrome/browser/browser_process.h"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 actor_->ShowFatalEnrollmentError(); 179 actor_->ShowFatalEnrollmentError();
180 return; 180 return;
181 } 181 }
182 182
183 connector->ScheduleServiceInitialization(0); 183 connector->ScheduleServiceInitialization(0);
184 registrar_.reset(new policy::CloudPolicySubsystem::ObserverRegistrar( 184 registrar_.reset(new policy::CloudPolicySubsystem::ObserverRegistrar(
185 connector->device_cloud_policy_subsystem(), this)); 185 connector->device_cloud_policy_subsystem(), this));
186 186
187 // Push the credentials to the policy infrastructure. It'll start enrollment 187 // Push the credentials to the policy infrastructure. It'll start enrollment
188 // and notify us of progress through CloudPolicySubsystem::Observer. 188 // and notify us of progress through CloudPolicySubsystem::Observer.
189 connector->RegisterForDevicePolicy(user_, token); 189 connector->RegisterForDevicePolicy(user_, token, is_auto_enrollment_);
190 } 190 }
191 191
192 } // namespace chromeos 192 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/policy/browser_policy_connector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698