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

Unified Diff: content/renderer/render_view_impl.cc

Issue 1859163002: android webview: setShouldReuseGlobalForUnownedMainFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add test Created 4 years, 8 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: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index bb6f263617d079a0700b50749263c169b07715f4..c6324c3720f97b0a874b4f00eabd429d682f57e9 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -1085,6 +1085,8 @@ void RenderView::ApplyWebPreferences(const WebPreferences& prefs,
prefs.ignore_main_frame_overflow_hidden_quirk);
settings->setReportScreenSizeInPhysicalPixelsQuirk(
prefs.report_screen_size_in_physical_pixels_quirk);
+ settings->setShouldReuseGlobalForUnownedMainFrame(
+ prefs.resue_global_for_unowned_main_frame);
settings->setPreferHiddenVolumeControls(true);
settings->setShrinksViewportContentToFit(true);
settings->setUseMobileViewportStyle(true);
« content/public/common/web_preferences.h ('K') | « content/public/common/web_preferences.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698