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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 14683006: Removed CSS Variables flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/public/common/common_param_traits_macros.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/web_contents/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 prefs.accelerated_compositing_for_plugins_enabled = 500 prefs.accelerated_compositing_for_plugins_enabled =
501 !command_line.HasSwitch(switches::kDisableAcceleratedPlugins); 501 !command_line.HasSwitch(switches::kDisableAcceleratedPlugins);
502 prefs.accelerated_compositing_for_video_enabled = 502 prefs.accelerated_compositing_for_video_enabled =
503 !command_line.HasSwitch(switches::kDisableAcceleratedVideo); 503 !command_line.HasSwitch(switches::kDisableAcceleratedVideo);
504 prefs.fullscreen_enabled = 504 prefs.fullscreen_enabled =
505 !command_line.HasSwitch(switches::kDisableFullScreen); 505 !command_line.HasSwitch(switches::kDisableFullScreen);
506 prefs.css_sticky_position_enabled = 506 prefs.css_sticky_position_enabled =
507 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures); 507 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures);
508 prefs.css_shaders_enabled = 508 prefs.css_shaders_enabled =
509 command_line.HasSwitch(switches::kEnableCssShaders); 509 command_line.HasSwitch(switches::kEnableCssShaders);
510 prefs.css_variables_enabled =
511 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures);
512 prefs.css_grid_layout_enabled = 510 prefs.css_grid_layout_enabled =
513 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures); 511 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures);
514 prefs.lazy_layout_enabled = 512 prefs.lazy_layout_enabled =
515 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures); 513 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures);
516 514
517 // TODO(abarth, eseidel): Enable threaded_html_parser by default on Android 515 // TODO(abarth, eseidel): Enable threaded_html_parser by default on Android
518 // once crbug 230542 is resolved. 516 // once crbug 230542 is resolved.
519 #if defined(OS_ANDROID) 517 #if defined(OS_ANDROID)
520 prefs.threaded_html_parser = false; 518 prefs.threaded_html_parser = false;
521 #else 519 #else
(...skipping 3002 matching lines...) Expand 10 before | Expand all | Expand 10 after
3524 } 3522 }
3525 3523
3526 BrowserPluginGuestManager* 3524 BrowserPluginGuestManager*
3527 WebContentsImpl::GetBrowserPluginGuestManager() const { 3525 WebContentsImpl::GetBrowserPluginGuestManager() const {
3528 return static_cast<BrowserPluginGuestManager*>( 3526 return static_cast<BrowserPluginGuestManager*>(
3529 GetBrowserContext()->GetUserData( 3527 GetBrowserContext()->GetUserData(
3530 browser_plugin::kBrowserPluginGuestManagerKeyName)); 3528 browser_plugin::kBrowserPluginGuestManagerKeyName));
3531 } 3529 }
3532 3530
3533 } // namespace content 3531 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/public/common/common_param_traits_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698