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

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

Issue 9188056: Start splitting out WebUI into an implementation class and an interface that each page implements... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 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: content/browser/tab_contents/render_view_host_manager.cc
===================================================================
--- content/browser/tab_contents/render_view_host_manager.cc (revision 117388)
+++ content/browser/tab_contents/render_view_host_manager.cc (working copy)
@@ -22,6 +22,7 @@
#include "content/common/view_messages.h"
#include "content/public/browser/content_browser_client.h"
#include "content/public/browser/notification_types.h"
+#include "content/public/browser/web_ui_controller.h"
#include "content/public/browser/web_ui_factory.h"
#include "content/public/common/content_switches.h"
#include "content/public/common/url_constants.h"
@@ -556,7 +557,7 @@
// Next commit the Web UI, if any.
web_ui_.swap(pending_web_ui_);
if (web_ui_.get() && pending_web_ui_.get() && !pending_render_view_host_)
- web_ui_->DidBecomeActiveForReusedRenderView();
+ web_ui_->controller()->DidBecomeActiveForReusedRenderView();
pending_web_ui_.reset();
// It's possible for the pending_render_view_host_ to be NULL when we aren't
@@ -736,7 +737,7 @@
return pending_render_view_host_;
} else {
if (pending_web_ui_.get() && render_view_host_->IsRenderViewLive())
- pending_web_ui_->RenderViewReused(render_view_host_);
+ pending_web_ui_->controller()->RenderViewReused(render_view_host_);
// The renderer can exit view source mode when any error or cancellation
// happen. We must overwrite to recover the mode.
« no previous file with comments | « chrome/renderer/chrome_ppb_pdf_impl.cc ('k') | content/browser/tab_contents/render_view_host_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698