Commit 8ef0627a authored by japhet's avatar japhet Committed by Commit bot

Use WebLocalFrame::isLoading(), not WebFrame::isLoading(), in print preview.

This was changed in the normal chromium print_preview_web_helper.cc in
02cfd5cc, but I missed the need to change it
in android's print_preview_web_helper.cc. This will allow isLoading() to live
solely on WebLocalFrame, as it doesn't make sense in a remote frame.

BUG=

Review URL: https://codereview.chromium.org/556923002

Cr-Commit-Position: refs/heads/master@{#294022}
parent cc98a7e0
...@@ -724,7 +724,7 @@ void PrepareFrameAndViewForPrint::RestoreSize() { ...@@ -724,7 +724,7 @@ void PrepareFrameAndViewForPrint::RestoreSize() {
} }
void PrepareFrameAndViewForPrint::FinishPrinting() { void PrepareFrameAndViewForPrint::FinishPrinting() {
blink::WebFrame* frame = frame_.GetFrame(); blink::WebLocalFrame* frame = frame_.GetFrame();
if (frame) { if (frame) {
blink::WebView* web_view = frame->view(); blink::WebView* web_view = frame->view();
if (is_printing_started_) { if (is_printing_started_) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment