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

Side by Side Diff: chrome/browser/chromeos/login/user_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
« no previous file with comments | « chrome/browser/chromeos/login/user_flow.h ('k') | no next file » | 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) 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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/message_loop/message_loop.h" 6 #include "base/message_loop/message_loop.h"
7 #include "chrome/browser/chromeos/login/user_flow.h" 7 #include "chrome/browser/chromeos/login/user_flow.h"
8 #include "chrome/browser/chromeos/login/users/chrome_user_manager.h" 8 #include "chrome/browser/chromeos/login/users/chrome_user_manager.h"
9 9
10 namespace chromeos { 10 namespace chromeos {
(...skipping 22 matching lines...) Expand all
33 } 33 }
34 34
35 bool DefaultUserFlow::ShouldLaunchBrowser() { 35 bool DefaultUserFlow::ShouldLaunchBrowser() {
36 return true; 36 return true;
37 } 37 }
38 38
39 bool DefaultUserFlow::ShouldSkipPostLoginScreens() { 39 bool DefaultUserFlow::ShouldSkipPostLoginScreens() {
40 return false; 40 return false;
41 } 41 }
42 42
43 bool DefaultUserFlow::SupportsEarlyRestartToApplyFlags() {
44 return true;
45 }
46
43 bool DefaultUserFlow::HandleLoginFailure(const AuthFailure& failure) { 47 bool DefaultUserFlow::HandleLoginFailure(const AuthFailure& failure) {
44 return false; 48 return false;
45 } 49 }
46 50
47 void DefaultUserFlow::HandleLoginSuccess(const UserContext& context) {} 51 void DefaultUserFlow::HandleLoginSuccess(const UserContext& context) {}
48 52
49 bool DefaultUserFlow::HandlePasswordChangeDetected() { 53 bool DefaultUserFlow::HandlePasswordChangeDetected() {
50 return false; 54 return false;
51 } 55 }
52 56
(...skipping 16 matching lines...) Expand all
69 } 73 }
70 74
71 void ExtendedUserFlow::UnregisterFlowSoon() { 75 void ExtendedUserFlow::UnregisterFlowSoon() {
72 std::string id_copy(user_id()); 76 std::string id_copy(user_id());
73 base::MessageLoop::current()->PostTask(FROM_HERE, 77 base::MessageLoop::current()->PostTask(FROM_HERE,
74 base::Bind(&UnregisterFlow, 78 base::Bind(&UnregisterFlow,
75 id_copy)); 79 id_copy));
76 } 80 }
77 81
78 } // namespace chromeos 82 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/user_flow.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698