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

Unified Diff: content/browser/tab_contents/tab_contents.cc

Issue 7046041: Removes RenderViewHostDelegate::GetBrowserWindowID. Instead the places (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix interstitialpage Created 9 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: content/browser/tab_contents/tab_contents.cc
diff --git a/content/browser/tab_contents/tab_contents.cc b/content/browser/tab_contents/tab_contents.cc
index ad8a7720d3878afa51bf8fb4277ddd7427586f48..95f83662aa9aff15254d23c27c6518d23a609768 100644
--- a/content/browser/tab_contents/tab_contents.cc
+++ b/content/browser/tab_contents/tab_contents.cc
@@ -1245,10 +1245,6 @@ ViewType::Type TabContents::GetRenderViewType() const {
return ViewType::TAB_CONTENTS;
}
-int TabContents::GetBrowserWindowID() const {
- return controller().window_id().id();
-}
-
void TabContents::RenderViewCreated(RenderViewHost* render_view_host) {
NotificationService::current()->Notify(
NotificationType::RENDER_VIEW_HOST_CREATED_FOR_TAB,
@@ -1273,6 +1269,9 @@ void TabContents::RenderViewCreated(RenderViewHost* render_view_host) {
FOR_EACH_OBSERVER(
TabContentsObserver, observers_, RenderViewCreated(render_view_host));
+
+ if (delegate())
+ delegate()->RenderViewCreated(this, render_view_host);
}
void TabContents::RenderViewReady(RenderViewHost* rvh) {

Powered by Google App Engine
This is Rietveld 408576698