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

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

Issue 925963002: Cleanup owners files, histograms, src (-ygorshenin@) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 10 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
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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 void WizardController::Init(const std::string& first_screen_name) { 241 void WizardController::Init(const std::string& first_screen_name) {
242 VLOG(1) << "Starting OOBE wizard with screen: " << first_screen_name; 242 VLOG(1) << "Starting OOBE wizard with screen: " << first_screen_name;
243 first_screen_name_ = first_screen_name; 243 first_screen_name_ = first_screen_name;
244 244
245 bool oobe_complete = StartupUtils::IsOobeCompleted(); 245 bool oobe_complete = StartupUtils::IsOobeCompleted();
246 if (!oobe_complete || first_screen_name == kOutOfBoxScreenName) 246 if (!oobe_complete || first_screen_name == kOutOfBoxScreenName)
247 is_out_of_box_ = true; 247 is_out_of_box_ = true;
248 248
249 // This is a hacky way to check for local state corruption, because 249 // This is a hacky way to check for local state corruption, because
250 // it depends on the fact that the local state is loaded 250 // it depends on the fact that the local state is loaded
251 // synchroniously and at the first demand. IsEnterpriseManaged() 251 // synchronously and at the first demand. IsEnterpriseManaged()
252 // check is required because currently powerwash is disabled for 252 // check is required because currently powerwash is disabled for
253 // enterprise-entrolled devices. 253 // enterprise-enrolled devices.
254 // 254 //
255 // TODO (ygorshenin@): implement handling of the local state 255 // TODO (ygorshenin@): implement handling of the local state
256 // corruption in the case of asynchronious loading. 256 // corruption in the case of asynchronious loading.
257 //
258 // TODO (ygorshenin@): remove IsEnterpriseManaged() check once
259 // crbug.com/241313 will be fixed.
260 policy::BrowserPolicyConnectorChromeOS* connector = 257 policy::BrowserPolicyConnectorChromeOS* connector =
261 g_browser_process->platform_part()->browser_policy_connector_chromeos(); 258 g_browser_process->platform_part()->browser_policy_connector_chromeos();
262 if (!connector->IsEnterpriseManaged()) { 259 if (!connector->IsEnterpriseManaged()) {
263 const PrefService::PrefInitializationStatus status = 260 const PrefService::PrefInitializationStatus status =
264 GetLocalState()->GetInitializationStatus(); 261 GetLocalState()->GetInitializationStatus();
265 if (status == PrefService::INITIALIZATION_STATUS_ERROR) { 262 if (status == PrefService::INITIALIZATION_STATUS_ERROR) {
266 OnLocalStateInitialized(false); 263 OnLocalStateInitialized(false);
267 return; 264 return;
268 } else if (status == PrefService::INITIALIZATION_STATUS_WAITING) { 265 } else if (status == PrefService::INITIALIZATION_STATUS_WAITING) {
269 GetLocalState()->AddPrefInitObserver( 266 GetLocalState()->AddPrefInitObserver(
(...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after
1309 } 1306 }
1310 1307
1311 EnrollmentScreen* screen = EnrollmentScreen::Get(this); 1308 EnrollmentScreen* screen = EnrollmentScreen::Get(this);
1312 screen->SetParameters(effective_config, shark_controller_.get(), 1309 screen->SetParameters(effective_config, shark_controller_.get(),
1313 remora_controller_.get()); 1310 remora_controller_.get());
1314 SetStatusAreaVisible(true); 1311 SetStatusAreaVisible(true);
1315 SetCurrentScreen(screen); 1312 SetCurrentScreen(screen);
1316 } 1313 }
1317 1314
1318 } // namespace chromeos 1315 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/users/multi_profile_user_controller_unittest.cc ('k') | chrome/browser/chromeos/net/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698