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

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

Issue 666443002: Additional logging for crash mentioned in crbug.com/422918 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Fix merge Created 6 years, 1 month 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_creation_flow .h" 5 #include "chrome/browser/chromeos/login/supervised/supervised_user_creation_flow .h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/browser/chromeos/login/supervised/supervised_user_creation_scre en.h" 9 #include "chrome/browser/chromeos/login/supervised/supervised_user_creation_scre en.h"
10 #include "chrome/browser/chromeos/login/ui/login_display_host_impl.h" 10 #include "chrome/browser/chromeos/login/ui/login_display_host_impl.h"
(...skipping 16 matching lines...) Expand all
27 } // namespace 27 } // namespace
28 28
29 SupervisedUserCreationFlow::SupervisedUserCreationFlow( 29 SupervisedUserCreationFlow::SupervisedUserCreationFlow(
30 const std::string& manager_id) 30 const std::string& manager_id)
31 : ExtendedUserFlow(manager_id), 31 : ExtendedUserFlow(manager_id),
32 token_validated_(false), 32 token_validated_(false),
33 logged_in_(false), 33 logged_in_(false),
34 session_started_(false), 34 session_started_(false),
35 manager_profile_(NULL) {} 35 manager_profile_(NULL) {}
36 36
37 SupervisedUserCreationFlow::~SupervisedUserCreationFlow() {} 37 SupervisedUserCreationFlow::~SupervisedUserCreationFlow() {
38 LOG(ERROR) << "Destroyed " << this;
39 }
38 40
39 bool SupervisedUserCreationFlow::CanLockScreen() { 41 bool SupervisedUserCreationFlow::CanLockScreen() {
40 return false; 42 return false;
41 } 43 }
42 44
43 bool SupervisedUserCreationFlow::ShouldShowSettings() { 45 bool SupervisedUserCreationFlow::ShouldShowSettings() {
44 return false; 46 return false;
45 } 47 }
46 48
47 bool SupervisedUserCreationFlow::ShouldLaunchBrowser() { 49 bool SupervisedUserCreationFlow::ShouldLaunchBrowser() {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 void SupervisedUserCreationFlow::HandleLoginSuccess( 90 void SupervisedUserCreationFlow::HandleLoginSuccess(
89 const UserContext& context) {} 91 const UserContext& context) {}
90 92
91 bool SupervisedUserCreationFlow::HandlePasswordChangeDetected() { 93 bool SupervisedUserCreationFlow::HandlePasswordChangeDetected() {
92 GetScreen(host())->ShowManagerInconsistentStateErrorScreen(); 94 GetScreen(host())->ShowManagerInconsistentStateErrorScreen();
93 return true; 95 return true;
94 } 96 }
95 97
96 void SupervisedUserCreationFlow::LaunchExtraSteps( 98 void SupervisedUserCreationFlow::LaunchExtraSteps(
97 Profile* profile) { 99 Profile* profile) {
100 // TODO(antrim): remove this output once crash is found.
101 LOG(ERROR) << "LaunchExtraSteps for " << this << " host is " << host();
98 logged_in_ = true; 102 logged_in_ = true;
99 manager_profile_ = profile; 103 manager_profile_ = profile;
100 ProfileHelper::Get()->ProfileStartup(profile, true); 104 ProfileHelper::Get()->ProfileStartup(profile, true);
101 105
102 if (token_validated_ && logged_in_) { 106 if (token_validated_ && logged_in_) {
103 if (!session_started_) 107 if (!session_started_)
104 GetScreen(host())->OnManagerFullyAuthenticated(manager_profile_); 108 GetScreen(host())->OnManagerFullyAuthenticated(manager_profile_);
105 session_started_ = true; 109 session_started_ = true;
106 } else { 110 } else {
107 GetScreen(host())->OnManagerCryptohomeAuthenticated(); 111 GetScreen(host())->OnManagerCryptohomeAuthenticated();
108 } 112 }
109 } 113 }
110 114
111 } // namespace chromeos 115 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/existing_user_controller.cc ('k') | chrome/browser/chromeos/login/user_flow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698