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

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

Issue 5996008: Reverse flag for kDisableExperimentalWebGL (Closed) Base URL: svn://svn.chromium.org/chrome/branches/597s/
Patch Set: Created 9 years, 11 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/background_contents_service.h" 10 #include "chrome/browser/background_contents_service.h"
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 command_line.HasSwitch(switches::kEnableXSSAuditor); 267 command_line.HasSwitch(switches::kEnableXSSAuditor);
268 web_prefs.application_cache_enabled = 268 web_prefs.application_cache_enabled =
269 !command_line.HasSwitch(switches::kDisableApplicationCache); 269 !command_line.HasSwitch(switches::kDisableApplicationCache);
270 270
271 web_prefs.local_storage_enabled = 271 web_prefs.local_storage_enabled =
272 !command_line.HasSwitch(switches::kDisableLocalStorage); 272 !command_line.HasSwitch(switches::kDisableLocalStorage);
273 web_prefs.databases_enabled = 273 web_prefs.databases_enabled =
274 !command_line.HasSwitch(switches::kDisableDatabases); 274 !command_line.HasSwitch(switches::kDisableDatabases);
275 web_prefs.experimental_webgl_enabled = 275 web_prefs.experimental_webgl_enabled =
276 gpu_enabled() && 276 gpu_enabled() &&
277 !command_line.HasSwitch(switches::kDisableExperimentalWebGL); 277 command_line.HasSwitch(switches::kEnableExperimentalWebGL);
278 web_prefs.site_specific_quirks_enabled = 278 web_prefs.site_specific_quirks_enabled =
279 !command_line.HasSwitch(switches::kDisableSiteSpecificQuirks); 279 !command_line.HasSwitch(switches::kDisableSiteSpecificQuirks);
280 web_prefs.allow_file_access_from_file_urls = 280 web_prefs.allow_file_access_from_file_urls =
281 command_line.HasSwitch(switches::kAllowFileAccessFromFiles); 281 command_line.HasSwitch(switches::kAllowFileAccessFromFiles);
282 web_prefs.show_composited_layer_borders = 282 web_prefs.show_composited_layer_borders =
283 command_line.HasSwitch(switches::kShowCompositedLayerBorders); 283 command_line.HasSwitch(switches::kShowCompositedLayerBorders);
284 web_prefs.accelerated_compositing_enabled = 284 web_prefs.accelerated_compositing_enabled =
285 gpu_enabled() && 285 gpu_enabled() &&
286 !command_line.HasSwitch(switches::kDisableAcceleratedCompositing); 286 !command_line.HasSwitch(switches::kDisableAcceleratedCompositing);
287 web_prefs.accelerated_2d_canvas_enabled = 287 web_prefs.accelerated_2d_canvas_enabled =
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 inspector_settings->SetWithoutPathExpansion(key, 334 inspector_settings->SetWithoutPathExpansion(key,
335 Value::CreateStringValue(value)); 335 Value::CreateStringValue(value));
336 } 336 }
337 337
338 void RenderViewHostDelegateHelper::ClearInspectorSettings(Profile* profile) { 338 void RenderViewHostDelegateHelper::ClearInspectorSettings(Profile* profile) {
339 DictionaryValue* inspector_settings = 339 DictionaryValue* inspector_settings =
340 profile->GetPrefs()->GetMutableDictionary( 340 profile->GetPrefs()->GetMutableDictionary(
341 prefs::kWebKitInspectorSettings); 341 prefs::kWebKitInspectorSettings);
342 inspector_settings->Clear(); 342 inspector_settings->Clear();
343 } 343 }
OLDNEW
« no previous file with comments | « src/chrome/browser/renderer_host/browser_render_process_host.cc ('k') | src/chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698