Index: content/browser/web_contents/web_contents_impl.cc |
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc |
index f7bee53452acc678511175979851aa1a5d09b18d..23dc5264a34ccb17e931526c984650596ce59675 100644 |
--- a/content/browser/web_contents/web_contents_impl.cc |
+++ b/content/browser/web_contents/web_contents_impl.cc |
@@ -632,8 +632,8 @@ WebPreferences WebContentsImpl::GetWebkitPrefs(RenderViewHost* rvh, |
// Disable compositing in guests until we have compositing path implemented |
// for guests. |
- bool guest_compositing_enabled = command_line.HasSwitch( |
- switches::kEnableBrowserPluginCompositing); |
+ bool guest_compositing_enabled = !command_line.HasSwitch( |
+ switches::kDisableBrowserPluginCompositing); |
if (rvh->GetProcess()->IsGuest() && !guest_compositing_enabled) { |
prefs.force_compositing_mode = false; |
prefs.accelerated_compositing_enabled = false; |