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

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

Issue 2651583007: Plumbing blink::Interface{Provider|Registry} through WebLocalFrame's constructor. (Closed)
Patch Set: Rebasing... Created 3 years, 11 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
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 3144c40e3de9dd340bd48f41e0bf61febe6030bf..b54f11487462f94622a3c0ba57ccec578cb82068 100644
--- a/components/printing/renderer/print_web_view_helper.cc
+++ b/components/printing/renderer/print_web_view_helper.cc
@@ -587,7 +587,7 @@ void PrintWebViewHelper::PrintHeaderAndFooter(
blink::WebFrameClient frame_client;
blink::WebLocalFrame* frame = blink::WebLocalFrame::create(
- blink::WebTreeScopeType::Document, &frame_client);
+ blink::WebTreeScopeType::Document, &frame_client, nullptr, nullptr);
web_view->setMainFrame(frame);
blink::WebFrameWidget::create(nullptr, web_view, frame);
@@ -809,8 +809,8 @@ void PrepareFrameAndViewForPrint::CopySelection(
blink::WebView::create(this, blink::WebPageVisibilityStateVisible);
owns_web_view_ = true;
content::RenderView::ApplyWebPreferences(prefs, web_view);
- blink::WebLocalFrame* main_frame =
- blink::WebLocalFrame::create(blink::WebTreeScopeType::Document, this);
+ blink::WebLocalFrame* main_frame = blink::WebLocalFrame::create(
+ blink::WebTreeScopeType::Document, this, nullptr, nullptr);
web_view->setMainFrame(main_frame);
blink::WebFrameWidget::create(this, web_view, main_frame);
frame_.Reset(web_view->mainFrame()->toWebLocalFrame());
@@ -842,7 +842,8 @@ blink::WebLocalFrame* PrepareFrameAndViewForPrint::createChildFrame(
const blink::WebString& unique_name,
blink::WebSandboxFlags sandbox_flags,
const blink::WebFrameOwnerProperties& frame_owner_properties) {
- blink::WebLocalFrame* frame = blink::WebLocalFrame::create(scope, this);
+ blink::WebLocalFrame* frame =
+ blink::WebLocalFrame::create(scope, this, nullptr, nullptr);
parent->appendChild(frame);
return frame;
}
« no previous file with comments | « components/plugins/renderer/webview_plugin.cc ('k') | content/renderer/media/android/media_info_loader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698