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

Unified Diff: chrome/browser/chromeos/login/ui/webui_login_view.cc

Issue 332243002: Network connectivity errors handling (incl. CP) for enrollment flow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed nits Created 6 years, 5 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/chromeos/login/ui/webui_login_view.cc
diff --git a/chrome/browser/chromeos/login/ui/webui_login_view.cc b/chrome/browser/chromeos/login/ui/webui_login_view.cc
index 3a9763388cbbf409b07699eedd589af78aee977e..691e4b8843cbdd44add85db2e570966e84ed5f57 100644
--- a/chrome/browser/chromeos/login/ui/webui_login_view.cc
+++ b/chrome/browser/chromeos/login/ui/webui_login_view.cc
@@ -312,6 +312,18 @@ void WebUILoginView::SetUIEnabled(bool enabled) {
ash::Shell::GetInstance()->GetPrimarySystemTray()->SetEnabled(enabled);
}
+void WebUILoginView::AddFrameObserver(FrameObserver* frame_observer) {
+ DCHECK(frame_observer);
+ DCHECK(!frame_observer_list_.HasObserver(frame_observer));
+ frame_observer_list_.AddObserver(frame_observer);
+}
+
+void WebUILoginView::RemoveFrameObserver(FrameObserver* frame_observer) {
+ DCHECK(frame_observer);
+ DCHECK(frame_observer_list_.HasObserver(frame_observer));
+ frame_observer_list_.RemoveObserver(frame_observer);
+}
+
// WebUILoginView protected: ---------------------------------------------------
void WebUILoginView::Layout() {
@@ -429,6 +441,9 @@ void WebUILoginView::DidFailProvisionalLoad(
const GURL& validated_url,
int error_code,
const base::string16& error_description) {
+ FOR_EACH_OBSERVER(FrameObserver,
+ frame_observer_list_,
+ OnFrameError(render_frame_host->GetFrameName()));
if (render_frame_host->GetFrameName() != "gaia-frame")
return;

Powered by Google App Engine
This is Rietveld 408576698