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

Side by Side Diff: chrome/browser/chromeos/login/wizard_controller.cc

Issue 17010003: Cleanup of system settings constants (ab)use. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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
OLDNEW
1 // Copyright (c) 2012 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/wizard_controller.h" 5 #include "chrome/browser/chromeos/login/wizard_controller.h"
6 6
7 #include <signal.h> 7 #include <signal.h>
8 #include <stdlib.h> 8 #include <stdlib.h>
9 #include <sys/types.h> 9 #include <sys/types.h>
10 10
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 VLOG(1) << "Starting OOBE wizard with screen: " << first_screen_name; 185 VLOG(1) << "Starting OOBE wizard with screen: " << first_screen_name;
186 first_screen_name_ = first_screen_name; 186 first_screen_name_ = first_screen_name;
187 screen_parameters_ = screen_parameters.Pass(); 187 screen_parameters_ = screen_parameters.Pass();
188 188
189 bool oobe_complete = StartupUtils::IsOobeCompleted(); 189 bool oobe_complete = StartupUtils::IsOobeCompleted();
190 if (!oobe_complete || first_screen_name == kOutOfBoxScreenName) { 190 if (!oobe_complete || first_screen_name == kOutOfBoxScreenName) {
191 is_out_of_box_ = true; 191 is_out_of_box_ = true;
192 192
193 bool keyboard_driven_oobe = false; 193 bool keyboard_driven_oobe = false;
194 system::StatisticsProvider::GetInstance()->GetMachineFlag( 194 system::StatisticsProvider::GetInstance()->GetMachineFlag(
195 chromeos::kOemKeyboardDrivenOobeKey, &keyboard_driven_oobe); 195 chromeos::system::kOemKeyboardDrivenOobeKey,
196 &keyboard_driven_oobe);
196 if (keyboard_driven_oobe) { 197 if (keyboard_driven_oobe) {
197 focus_ring_controller_.reset(new FocusRingController); 198 focus_ring_controller_.reset(new FocusRingController);
198 focus_ring_controller_->SetVisible(true); 199 focus_ring_controller_->SetVisible(true);
199 } 200 }
200 } 201 }
201 202
202 AdvanceToScreen(first_screen_name); 203 AdvanceToScreen(first_screen_name);
203 content::NotificationService::current()->Notify( 204 content::NotificationService::current()->Notify(
204 chrome::NOTIFICATION_WIZARD_FIRST_SCREEN_SHOWN, 205 chrome::NOTIFICATION_WIZARD_FIRST_SCREEN_SHOWN,
205 content::NotificationService::AllSources(), 206 content::NotificationService::AllSources(),
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 return g_browser_process->browser_policy_connector()-> 868 return g_browser_process->browser_policy_connector()->
868 GetDeviceCloudPolicyManager()->ShouldAutoStartEnrollment(); 869 GetDeviceCloudPolicyManager()->ShouldAutoStartEnrollment();
869 } 870 }
870 871
871 bool WizardController::CanExitEnrollment() const { 872 bool WizardController::CanExitEnrollment() const {
872 return g_browser_process->browser_policy_connector()-> 873 return g_browser_process->browser_policy_connector()->
873 GetDeviceCloudPolicyManager()->CanExitEnrollment(); 874 GetDeviceCloudPolicyManager()->CanExitEnrollment();
874 } 875 }
875 876
876 } // namespace chromeos 877 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698