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

Unified Diff: android_webview/renderer/print_web_view_helper.cc

Issue 175543005: Use the single argument overload of WebFrame::create(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
« no previous file with comments | « no previous file | chrome/renderer/printing/print_web_view_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/renderer/print_web_view_helper.cc
diff --git a/android_webview/renderer/print_web_view_helper.cc b/android_webview/renderer/print_web_view_helper.cc
index 7fc7ecb5f6b921749fd554df942263b2c4baef93..6407416ab0c187ba1a5a7f8d3daa4e050cbe8001 100644
--- a/android_webview/renderer/print_web_view_helper.cc
+++ b/android_webview/renderer/print_web_view_helper.cc
@@ -655,8 +655,7 @@ void PrepareFrameAndViewForPrint::CopySelection(
owns_web_view_ = true;
content::ApplyWebPreferences(prefs, web_view);
- // We don't need to use the frame ID for this frame, so we pass 0 for it.
- web_view->setMainFrame(blink::WebFrame::create(this, 0));
+ web_view->setMainFrame(blink::WebFrame::create(this));
frame_.Reset(web_view->mainFrame());
node_to_print_.reset();
« no previous file with comments | « no previous file | chrome/renderer/printing/print_web_view_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698