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

Side by Side Diff: chrome/browser/tab_contents/render_view_host_delegate_helper.cc

Issue 7757008: turn on --enable-accelerated-plugins by default (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 | « chrome/browser/chromeos/login/login_utils.cc ('k') | content/common/content_switches.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/tab_contents/render_view_host_delegate_helper.h" 5 #include "chrome/browser/tab_contents/render_view_host_delegate_helper.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 GpuProcessHost::gpu_enabled() && 440 GpuProcessHost::gpu_enabled() &&
441 !command_line.HasSwitch(switches::kDisableAccelerated2dCanvas); 441 !command_line.HasSwitch(switches::kDisableAccelerated2dCanvas);
442 web_prefs.accelerated_drawing_enabled = 442 web_prefs.accelerated_drawing_enabled =
443 GpuProcessHost::gpu_enabled() && 443 GpuProcessHost::gpu_enabled() &&
444 command_line.HasSwitch(switches::kEnableAcceleratedDrawing); 444 command_line.HasSwitch(switches::kEnableAcceleratedDrawing);
445 web_prefs.accelerated_layers_enabled = 445 web_prefs.accelerated_layers_enabled =
446 !command_line.HasSwitch(switches::kDisableAcceleratedLayers); 446 !command_line.HasSwitch(switches::kDisableAcceleratedLayers);
447 web_prefs.composite_to_texture_enabled = 447 web_prefs.composite_to_texture_enabled =
448 command_line.HasSwitch(switches::kEnableCompositeToTexture); 448 command_line.HasSwitch(switches::kEnableCompositeToTexture);
449 web_prefs.accelerated_plugins_enabled = 449 web_prefs.accelerated_plugins_enabled =
450 command_line.HasSwitch(switches::kEnableAcceleratedPlugins); 450 !command_line.HasSwitch(switches::kDisableAcceleratedPlugins);
451 web_prefs.accelerated_video_enabled = 451 web_prefs.accelerated_video_enabled =
452 !command_line.HasSwitch(switches::kDisableAcceleratedVideo); 452 !command_line.HasSwitch(switches::kDisableAcceleratedVideo);
453 web_prefs.memory_info_enabled = 453 web_prefs.memory_info_enabled =
454 command_line.HasSwitch(switches::kEnableMemoryInfo); 454 command_line.HasSwitch(switches::kEnableMemoryInfo);
455 web_prefs.interactive_form_validation_enabled = 455 web_prefs.interactive_form_validation_enabled =
456 !command_line.HasSwitch(switches::kDisableInteractiveFormValidation); 456 !command_line.HasSwitch(switches::kDisableInteractiveFormValidation);
457 web_prefs.fullscreen_enabled = 457 web_prefs.fullscreen_enabled =
458 command_line.HasSwitch(switches::kEnableFullScreen); 458 command_line.HasSwitch(switches::kEnableFullScreen);
459 web_prefs.allow_displaying_insecure_content = 459 web_prefs.allow_displaying_insecure_content =
460 prefs->GetBoolean(prefs::kWebKitAllowDisplayingInsecureContent); 460 prefs->GetBoolean(prefs::kWebKitAllowDisplayingInsecureContent);
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 DictionaryValue* inspector_settings = update.Get(); 522 DictionaryValue* inspector_settings = update.Get();
523 inspector_settings->SetWithoutPathExpansion(key, 523 inspector_settings->SetWithoutPathExpansion(key,
524 Value::CreateStringValue(value)); 524 Value::CreateStringValue(value));
525 } 525 }
526 526
527 void RenderViewHostDelegateHelper::ClearInspectorSettings( 527 void RenderViewHostDelegateHelper::ClearInspectorSettings(
528 content::BrowserContext* browser_context) { 528 content::BrowserContext* browser_context) {
529 Profile::FromBrowserContext(browser_context)->GetPrefs()-> 529 Profile::FromBrowserContext(browser_context)->GetPrefs()->
530 ClearPref(prefs::kWebKitInspectorSettings); 530 ClearPref(prefs::kWebKitInspectorSettings);
531 } 531 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/login_utils.cc ('k') | content/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698