The WebKit experimental features flag should also control CSS Grid Layout.

CSS Grid Layout couldn't be enabled / disabled at runtime as the required
plumbing wasn't done. This change adds the missing plumbing so that it responds
to --enable-experimental-webkit-features (similar to CSS 3 region).

BUG=161565
TEST=Test with --enable-experimental-webkit-features that CSS Grid Layout is
enabled.


Review URL: https://chromiumcodereview.appspot.com/11411052

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168662 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 df435f0b..a1e986b9 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -528,6 +528,8 @@
       command_line.HasSwitch(switches::kEnableCssShaders);
   prefs.css_variables_enabled =
       command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures);
+  prefs.css_grid_layout_enabled =
+      command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures);
 #if defined(USE_AURA) && defined(USE_X11)
   prefs.device_supports_touch |=
       ui::TouchFactory::GetInstance()->IsTouchDevicePresent();