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

Unified Diff: content/renderer/render_view_impl.cc

Issue 10154004: re-use WebUIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: WeakPtr solution Created 8 years, 8 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
« no previous file with comments | « content/public/browser/web_ui_controller.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 7a507aca36af8b99bbee2438730487f790921c0b..3e9c41529aea10c2dc62c1a39f6ab1c28c7cd4e7 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -2941,10 +2941,8 @@ void RenderViewImpl::didCreateDocumentElement(WebFrame* frame) {
// Notify the browser about non-blank documents loading in the top frame.
GURL url = frame->document().url();
if (url.is_valid() && url.spec() != chrome::kAboutBlankURL) {
- Send(new ViewHostMsg_DocumentAvailableInFrame(
- routing_id_,
- frame == webview()->mainFrame(),
- frame->document().url()));
+ if (frame == webview()->mainFrame())
+ Send(new ViewHostMsg_DocumentAvailableInMainFrame(routing_id_));
}
FOR_EACH_OBSERVER(RenderViewObserver, observers_,
« no previous file with comments | « content/public/browser/web_ui_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698