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

Unified Diff: chrome/browser/ui/webui/chromeos/login/error_screen_handler.h

Issue 332243002: Network connectivity errors handling (incl. CP) for enrollment flow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix building browser_test Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/chromeos/login/error_screen_handler.h
diff --git a/chrome/browser/ui/webui/chromeos/login/error_screen_handler.h b/chrome/browser/ui/webui/chromeos/login/error_screen_handler.h
index 94014deb68e9fc8839144ff3a0fdfcd72a8d8ad7..0359cc28e12871d7277089a88ffc18f2279183b4 100644
--- a/chrome/browser/ui/webui/chromeos/login/error_screen_handler.h
+++ b/chrome/browser/ui/webui/chromeos/login/error_screen_handler.h
@@ -45,12 +45,18 @@ class ErrorScreenHandler : public BaseScreenHandler,
virtual void AllowOfflineLogin(bool allowed) OVERRIDE;
virtual void ShowConnectingIndicator(bool show) OVERRIDE;
+ virtual void Show(OobeDisplay::Screen parent_screen,
ygorshenin1 2014/06/18 13:11:35 Add OVERRIDE.
Roman Sorokin (ftl) 2014/06/19 11:57:38 Done.
+ base::DictionaryValue* params,
+ base::Closure closure);
+
private:
// Sends notification that error message is shown.
void NetworkErrorShown();
bool GetScreenName(OobeUI::Screen screen, std::string* name) const;
+ void CheckAndShowScreen();
ygorshenin1 2014/06/18 13:11:35 Add comment to this method.
Roman Sorokin (ftl) 2014/06/19 11:57:38 Done.
+
// WebUI message handlers.
void HandleShowCaptivePortal();
void HandleHideCaptivePortal();
@@ -82,6 +88,8 @@ class ErrorScreenHandler : public BaseScreenHandler,
// Keeps whether screen should be shown right after initialization.
bool show_on_init_;
+ scoped_ptr<base::Closure> closure_;
+
DISALLOW_COPY_AND_ASSIGN(ErrorScreenHandler);
};

Powered by Google App Engine
This is Rietveld 408576698