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

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

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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ERROR_SCREEN_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ERROR_SCREEN_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ERROR_SCREEN_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ERROR_SCREEN_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 23 matching lines...) Expand all
34 UI_STATE_AUTO_ENROLLMENT_ERROR, 34 UI_STATE_AUTO_ENROLLMENT_ERROR,
35 UI_STATE_ROLLBACK_ERROR, 35 UI_STATE_ROLLBACK_ERROR,
36 }; 36 };
37 37
38 enum ErrorState { 38 enum ErrorState {
39 ERROR_STATE_UNKNOWN = 0, 39 ERROR_STATE_UNKNOWN = 0,
40 ERROR_STATE_PORTAL, 40 ERROR_STATE_PORTAL,
41 ERROR_STATE_OFFLINE, 41 ERROR_STATE_OFFLINE,
42 ERROR_STATE_PROXY, 42 ERROR_STATE_PROXY,
43 ERROR_STATE_AUTH_EXT_TIMEOUT, 43 ERROR_STATE_AUTH_EXT_TIMEOUT,
44 ERROR_STATE_KIOSK_ONLINE 44 ERROR_STATE_NONE,
45 // States above are being logged to histograms.
46 // Please keep ERROR_STATE_NONE as the last one of the histogram values.
47 ERROR_STATE_KIOSK_ONLINE,
45 }; 48 };
46 49
47 ErrorScreen(ScreenObserver* screen_observer, ErrorScreenActor* actor); 50 ErrorScreen(ScreenObserver* screen_observer, ErrorScreenActor* actor);
48 virtual ~ErrorScreen(); 51 virtual ~ErrorScreen();
49 52
50 // BaseScreen implementation. 53 // BaseScreen implementation.
51 virtual void PrepareToShow() override; 54 virtual void PrepareToShow() override;
52 virtual void Show() override; 55 virtual void Show() override;
53 virtual void Hide() override; 56 virtual void Hide() override;
54 virtual std::string GetName() const override; 57 virtual std::string GetName() const override;
(...skipping 25 matching lines...) Expand all
80 83
81 // Sets current UI state. 84 // Sets current UI state.
82 void SetUIState(UIState ui_state); 85 void SetUIState(UIState ui_state);
83 86
84 UIState GetUIState() const; 87 UIState GetUIState() const;
85 88
86 // Sets current error screen content according to current UI state, 89 // Sets current error screen content according to current UI state,
87 // |error_state|, and |network|. 90 // |error_state|, and |network|.
88 void SetErrorState(ErrorState error_state, const std::string& network); 91 void SetErrorState(ErrorState error_state, const std::string& network);
89 92
93 ErrorState GetErrorState() const;
94
90 // Toggles the guest sign-in prompt. 95 // Toggles the guest sign-in prompt.
91 void AllowGuestSignin(bool allow); 96 void AllowGuestSignin(bool allow);
92 97
93 // Toggles the connection pending indicator. 98 // Toggles the connection pending indicator.
94 void ShowConnectingIndicator(bool show); 99 void ShowConnectingIndicator(bool show);
95 100
96 void set_parent_screen(OobeDisplay::Screen parent_screen) { 101 void set_parent_screen(OobeDisplay::Screen parent_screen) {
97 parent_screen_ = parent_screen; 102 parent_screen_ = parent_screen;
98 } 103 }
99 OobeDisplay::Screen parent_screen() const { return parent_screen_; } 104 OobeDisplay::Screen parent_screen() const { return parent_screen_; }
(...skipping 11 matching lines...) Expand all
111 scoped_ptr<LoginPerformer> guest_login_performer_; 116 scoped_ptr<LoginPerformer> guest_login_performer_;
112 117
113 base::WeakPtrFactory<ErrorScreen> weak_factory_; 118 base::WeakPtrFactory<ErrorScreen> weak_factory_;
114 119
115 DISALLOW_COPY_AND_ASSIGN(ErrorScreen); 120 DISALLOW_COPY_AND_ASSIGN(ErrorScreen);
116 }; 121 };
117 122
118 } // namespace chromeos 123 } // namespace chromeos
119 124
120 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ERROR_SCREEN_H_ 125 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ERROR_SCREEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698