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

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: 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/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 cdadcf225f7a530e33cee2b76bdc792289c5616d..f1533b52640eb08261a5ad371b863af233914d6d 100644
--- a/chrome/browser/chromeos/login/ui/webui_login_view.cc
+++ b/chrome/browser/chromeos/login/ui/webui_login_view.cc
@@ -311,6 +311,15 @@ void WebUILoginView::SetUIEnabled(bool enabled) {
ash::Shell::GetInstance()->GetPrimarySystemTray()->SetEnabled(enabled);
}
+void WebUILoginView::AddFrameObserver(FrameObserver* frame_observer) {
+ if (frame_observer && !frame_observer_list_.HasObserver(frame_observer))
+ frame_observer_list_.AddObserver(frame_observer);
+}
+
+void WebUILoginView::RemoveFrameObserver(FrameObserver* frame_observer) {
+ frame_observer_list_.RemoveObserver(frame_observer);
+}
+
// WebUILoginView protected: ---------------------------------------------------
void WebUILoginView::Layout() {
@@ -430,6 +439,15 @@ void WebUILoginView::DidFailProvisionalLoad(
int error_code,
const base::string16& error_description,
content::RenderViewHost* render_view_host) {
+ FOR_EACH_OBSERVER(FrameObserver,
+ frame_observer_list_,
+ DidFailProvisionalLoad(frame_id,
+ frame_unique_name,
+ is_main_frame,
+ validated_url,
+ error_code,
+ error_description,
+ render_view_host));
if (frame_unique_name != base::UTF8ToUTF16("gaia-frame"))
return;

Powered by Google App Engine
This is Rietveld 408576698