| Index: components/printing/renderer/print_web_view_helper.cc
|
| diff --git a/components/printing/renderer/print_web_view_helper.cc b/components/printing/renderer/print_web_view_helper.cc
|
| index ab65ed6f255d98276b33fc6e70e8d784fe36efcd..0584634c45ee9ad4ac8c1a896c0b18012148b7f8 100644
|
| --- a/components/printing/renderer/print_web_view_helper.cc
|
| +++ b/components/printing/renderer/print_web_view_helper.cc
|
| @@ -592,7 +592,9 @@ class PrepareFrameAndViewForPrint : public blink::WebViewClient,
|
| blink::WebTreeScopeType scope,
|
| const blink::WebString& name,
|
| blink::WebSandboxFlags sandboxFlags);
|
| + // TODO(lfg): Remove this method once the blink patch lands.
|
| virtual void frameDetached(blink::WebFrame* frame);
|
| + virtual void frameDetached(blink::WebFrame* frame, DetachType type);
|
|
|
| private:
|
| void CallOnReady();
|
| @@ -743,6 +745,12 @@ blink::WebFrame* PrepareFrameAndViewForPrint::createChildFrame(
|
| }
|
|
|
| void PrepareFrameAndViewForPrint::frameDetached(blink::WebFrame* frame) {
|
| + frameDetached(frame, DetachType::Remove);
|
| +}
|
| +
|
| +void PrepareFrameAndViewForPrint::frameDetached(blink::WebFrame* frame,
|
| + DetachType type) {
|
| + DCHECK(type == DetachType::Remove);
|
| if (frame->parent())
|
| frame->parent()->removeChild(frame);
|
| frame->close();
|
|
|