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

Unified Diff: chrome/browser/sessions/restore_tab_helper.cc

Issue 8892011: Clean up TCW, make it solely a hub for 1:1 observer/helper objects. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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/sessions/restore_tab_helper.cc
diff --git a/chrome/browser/sessions/restore_tab_helper.cc b/chrome/browser/sessions/restore_tab_helper.cc
index 074991e4f1901ef58399d0de4f7862e8077ea754..6516731a7a7178392bc03b4be6271aa64a1585ae 100644
--- a/chrome/browser/sessions/restore_tab_helper.cc
+++ b/chrome/browser/sessions/restore_tab_helper.cc
@@ -7,6 +7,7 @@
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
#include "chrome/common/extensions/extension_messages.h"
#include "content/browser/renderer_host/render_view_host.h"
+#include "content/browser/tab_contents/tab_contents.h"
#include "content/public/browser/notification_service.h"
#include "content/public/browser/notification_types.h"
@@ -27,8 +28,9 @@ void RestoreTabHelper::SetWindowID(const SessionID& id) {
// Extension code in the renderer holds the ID of the window that hosts it.
// Notify it that the window ID changed.
- tab_->render_view_host()->Send(new ExtensionMsg_UpdateBrowserWindowId(
- tab_->render_view_host()->routing_id(), id.id()));
+ tab_->tab_contents()->render_view_host()->Send(
+ new ExtensionMsg_UpdateBrowserWindowId(
+ tab_->tab_contents()->render_view_host()->routing_id(), id.id()));
}
void RestoreTabHelper::RenderViewCreated(RenderViewHost* render_view_host) {
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_tab_observer.cc ('k') | chrome/browser/sessions/session_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698