#include "chrome/common/render_messages.h"
#include "components/user_prefs/pref_registry_syncable.h"
#include "content/public/browser/notification_service.h"
+#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/web_contents.h"
+using content::RenderFrameHost;
using content::RenderViewHost;
using content::WebContents;
void AlternateErrorPageTabObserver::UpdateAlternateErrorPageURL(
RenderViewHost* rvh) {
- rvh->Send(new ChromeViewMsg_SetAltErrorPageURL(
- rvh->GetRoutingID(), GetAlternateErrorPageURL()));
+ RenderFrameHost* rfh = rvh->GetMainFrame();
+ rfh->Send(new ChromeViewMsg_SetAltErrorPageURL(
+ rfh->GetRoutingID(), GetAlternateErrorPageURL()));
}