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

Side by Side Diff: chrome/browser/chromeos/login/screens/error_screen.cc

Issue 494633003: UMA: How often are different network error screens encountered during OOBE (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update after review 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 (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/screens/error_screen.h" 5 #include "chrome/browser/chromeos/login/screens/error_screen.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/browser/chromeos/login/chrome_restart_request.h" 8 #include "chrome/browser/chromeos/login/chrome_restart_request.h"
9 #include "chrome/browser/chromeos/login/screens/error_screen_actor.h" 9 #include "chrome/browser/chromeos/login/screens/error_screen_actor.h"
10 #include "chrome/browser/chromeos/login/startup_utils.h" 10 #include "chrome/browser/chromeos/login/startup_utils.h"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 ErrorScreen::UIState ErrorScreen::GetUIState() const { 123 ErrorScreen::UIState ErrorScreen::GetUIState() const {
124 return actor_ ? actor_->ui_state() : UI_STATE_UNKNOWN; 124 return actor_ ? actor_->ui_state() : UI_STATE_UNKNOWN;
125 } 125 }
126 126
127 void ErrorScreen::SetErrorState(ErrorState error_state, 127 void ErrorScreen::SetErrorState(ErrorState error_state,
128 const std::string& network) { 128 const std::string& network) {
129 if (actor_) 129 if (actor_)
130 actor_->SetErrorState(error_state, network); 130 actor_->SetErrorState(error_state, network);
131 } 131 }
132 132
133 ErrorScreen::ErrorState ErrorScreen::GetErrorState() const {
134 DCHECK(actor_);
135 return actor_->error_state();
136 }
137
133 void ErrorScreen::AllowGuestSignin(bool allow) { 138 void ErrorScreen::AllowGuestSignin(bool allow) {
134 if (actor_) 139 if (actor_)
135 actor_->AllowGuestSignin(allow); 140 actor_->AllowGuestSignin(allow);
136 } 141 }
137 142
138 void ErrorScreen::ShowConnectingIndicator(bool show) { 143 void ErrorScreen::ShowConnectingIndicator(bool show) {
139 if (actor_) 144 if (actor_)
140 actor_->ShowConnectingIndicator(show); 145 actor_->ShowConnectingIndicator(show);
141 } 146 }
142 147
(...skipping 26 matching lines...) Expand all
169 } 174 }
170 175
171 if (guest_login_performer_) 176 if (guest_login_performer_)
172 return; 177 return;
173 178
174 guest_login_performer_.reset(new LoginPerformer(this)); 179 guest_login_performer_.reset(new LoginPerformer(this));
175 guest_login_performer_->LoginOffTheRecord(); 180 guest_login_performer_->LoginOffTheRecord();
176 } 181 }
177 182
178 } // namespace chromeos 183 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screens/error_screen.h ('k') | chrome/browser/chromeos/login/screens/update_screen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698