Implements frame sniffer to watch iframe loading state.
Also sniffer listener was implemented on the WebUI side, which signals when
GAIA page loading error appears.
BUG=chromium-os:18744
TEST=Behind captive portal, try to click 'Add new user'. Corresponding message page should be shown.
Review URL: http://codereview.chromium.org/7779010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99777 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/chromeos/tab_first_render_watcher.cc b/chrome/browser/chromeos/tab_first_render_watcher.cc
index fecb253..97683770 100644
--- a/chrome/browser/chromeos/tab_first_render_watcher.cc
+++ b/chrome/browser/chromeos/tab_first_render_watcher.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/chromeos/tab_first_render_watcher.h"
#include "content/browser/renderer_host/render_widget_host.h"
+#include "content/browser/renderer_host/render_view_host.h"
#include "content/common/content_notification_types.h"
#include "content/common/notification_details.h"
#include "content/common/notification_source.h"
@@ -32,6 +33,7 @@
registrar_.Add(this,
content::NOTIFICATION_RENDER_WIDGET_HOST_DID_PAINT,
Source<RenderWidgetHost>(rwh));
+ delegate_->OnRenderHostCreated(Details<RenderViewHost>(details).ptr());
break;
}
case content::NOTIFICATION_LOAD_COMPLETED_MAIN_FRAME: