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

Unified Diff: chrome/renderer/printing/print_web_view_helper.cc

Issue 107893003: Make the renderer-side prerendering code use RenderFrames instead of RenderViews. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: creis review comments Created 7 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/renderer/printing/print_web_view_helper.cc
===================================================================
--- chrome/renderer/printing/print_web_view_helper.cc (revision 239602)
+++ chrome/renderer/printing/print_web_view_helper.cc (working copy)
@@ -20,6 +20,7 @@
#include "chrome/common/print_messages.h"
#include "chrome/common/render_messages.h"
#include "chrome/renderer/prerender/prerender_helper.h"
+#include "content/public/renderer/render_frame.h"
#include "content/public/renderer/render_thread.h"
#include "content/public/renderer/render_view.h"
#include "content/public/renderer/web_preferences.h"
@@ -757,7 +758,8 @@
DCHECK(frame);
// Allow Prerendering to cancel this print request if necessary.
- if (prerender::PrerenderHelper::IsPrerendering(render_view())) {
+ if (prerender::PrerenderHelper::IsPrerendering(
+ render_view()->GetMainRenderFrame())) {
Send(new ChromeViewHostMsg_CancelPrerenderForPrinting(routing_id()));
return;
}

Powered by Google App Engine
This is Rietveld 408576698