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

Side by Side Diff: chrome/browser/chromeos/login/supervised/supervised_user_login_flow.cc

Issue 654173005: Don't allow restarting to apply custom flags when supervised user creation flow is active (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: logging restart due flags as warning, don't restart for supervised users Created 6 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/supervised/supervised_user_login_flow.h" 5 #include "chrome/browser/chromeos/login/supervised/supervised_user_login_flow.h"
6 6
7 #include "base/base64.h" 7 #include "base/base64.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "base/prefs/pref_registry_simple.h" 10 #include "base/prefs/pref_registry_simple.h"
(...skipping 29 matching lines...) Expand all
40 } 40 }
41 41
42 bool SupervisedUserLoginFlow::ShouldLaunchBrowser() { 42 bool SupervisedUserLoginFlow::ShouldLaunchBrowser() {
43 return data_loaded_; 43 return data_loaded_;
44 } 44 }
45 45
46 bool SupervisedUserLoginFlow::ShouldSkipPostLoginScreens() { 46 bool SupervisedUserLoginFlow::ShouldSkipPostLoginScreens() {
47 return true; 47 return true;
48 } 48 }
49 49
50 bool SupervisedUserLoginFlow::SupportsEarlyRestartToApplyFlags() {
51 return false;
52 }
53
50 bool SupervisedUserLoginFlow::HandleLoginFailure(const AuthFailure& failure) { 54 bool SupervisedUserLoginFlow::HandleLoginFailure(const AuthFailure& failure) {
51 return false; 55 return false;
52 } 56 }
53 57
54 bool SupervisedUserLoginFlow::HandlePasswordChangeDetected() { 58 bool SupervisedUserLoginFlow::HandlePasswordChangeDetected() {
55 return false; 59 return false;
56 } 60 }
57 61
58 void SupervisedUserLoginFlow::HandleOAuthTokenStatusChange( 62 void SupervisedUserLoginFlow::HandleOAuthTokenStatusChange(
59 user_manager::User::OAuthTokenStatus status) { 63 user_manager::User::OAuthTokenStatus status) {
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 void SupervisedUserLoginFlow::LaunchExtraSteps( 253 void SupervisedUserLoginFlow::LaunchExtraSteps(
250 Profile* profile) { 254 Profile* profile) {
251 profile_ = profile; 255 profile_ = profile;
252 ChromeUserManager::Get()->GetSupervisedUserManager()->LoadSupervisedUserToken( 256 ChromeUserManager::Get()->GetSupervisedUserManager()->LoadSupervisedUserToken(
253 profile, 257 profile,
254 base::Bind(&SupervisedUserLoginFlow::OnSyncSetupDataLoaded, 258 base::Bind(&SupervisedUserLoginFlow::OnSyncSetupDataLoaded,
255 weak_factory_.GetWeakPtr())); 259 weak_factory_.GetWeakPtr()));
256 } 260 }
257 261
258 } // namespace chromeos 262 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/supervised/supervised_user_login_flow.h ('k') | chrome/browser/chromeos/login/user_flow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698