| Index: components/pdf/renderer/pepper_pdf_host.cc
|
| diff --git a/components/pdf/renderer/pepper_pdf_host.cc b/components/pdf/renderer/pepper_pdf_host.cc
|
| index ab9418b33db14ef60cd5f21fd768156e506731a6..5de42de45f68cac31c7ac9a4c4c9cf8115c40921 100644
|
| --- a/components/pdf/renderer/pepper_pdf_host.cc
|
| +++ b/components/pdf/renderer/pepper_pdf_host.cc
|
| @@ -142,6 +142,11 @@ int32_t PepperPDFHost::OnHostMsgHasUnsupportedFeature(
|
| if (!instance)
|
| return PP_ERROR_FAILED;
|
|
|
| + // TODO(thestig): Turn CHECKs into the proper if statement after figuring out
|
| + // what's wrong for https://crbug.com/627814
|
| + CHECK(instance->GetContainer());
|
| + CHECK(instance->GetContainer()->document().frame());
|
| + CHECK(instance->GetContainer()->document().frame()->view());
|
| blink::WebView* view =
|
| instance->GetContainer()->document().frame()->view();
|
| content::RenderView* render_view = content::RenderView::FromWebView(view);
|
|
|