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

Unified Diff: chrome/browser/ui/alternate_error_tab_observer.cc

Issue 137463002: RenderFrame: flesh out Observer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Bridge OnStop Created 6 years, 11 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/alternate_error_tab_observer.cc
diff --git a/chrome/browser/ui/alternate_error_tab_observer.cc b/chrome/browser/ui/alternate_error_tab_observer.cc
index 21415ce20c1335758ac95f2215c0cf5619c6dabc..a7357281df50da1ffa6760c791f83321334ea537 100644
--- a/chrome/browser/ui/alternate_error_tab_observer.cc
+++ b/chrome/browser/ui/alternate_error_tab_observer.cc
@@ -12,9 +12,11 @@
#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;
@@ -93,6 +95,7 @@ void AlternateErrorPageTabObserver::OnAlternateErrorPagesEnabledChanged() {
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()));
}

Powered by Google App Engine
This is Rietveld 408576698