Add command line switch to enable region based columns.
This needs to be a separate switch - we cannot lump it together with
--enable-experimental-webkit-features , because we don't want
to unconditionally enable region based columns when running LayoutTests
(there are LayoutTests that compare rendering in the old and new multicol
implementations, using internals.settings.setRegionBasedColumnsEnabled(true)).
BUG=242905
Review URL: https://chromiumcodereview.appspot.com/17057003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207005 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 1998790..6d7b3c73 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -559,6 +559,8 @@
command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures);
prefs.lazy_layout_enabled =
command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures);
+ prefs.region_based_columns_enabled =
+ command_line.HasSwitch(switches::kEnableRegionBasedColumns);
prefs.threaded_html_parser =
!command_line.HasSwitch(switches::kDisableThreadedHTMLParser);
prefs.experimental_websocket_enabled =