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

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

Issue 6027004: Revert 69753 - Added group policy for disabling all client-side 3D APIs in Ch... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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 <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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 command_line.HasSwitch(switches::kEnableXSSAuditor); 268 command_line.HasSwitch(switches::kEnableXSSAuditor);
269 web_prefs.application_cache_enabled = 269 web_prefs.application_cache_enabled =
270 !command_line.HasSwitch(switches::kDisableApplicationCache); 270 !command_line.HasSwitch(switches::kDisableApplicationCache);
271 271
272 web_prefs.local_storage_enabled = 272 web_prefs.local_storage_enabled =
273 !command_line.HasSwitch(switches::kDisableLocalStorage); 273 !command_line.HasSwitch(switches::kDisableLocalStorage);
274 web_prefs.databases_enabled = 274 web_prefs.databases_enabled =
275 !command_line.HasSwitch(switches::kDisableDatabases); 275 !command_line.HasSwitch(switches::kDisableDatabases);
276 web_prefs.experimental_webgl_enabled = 276 web_prefs.experimental_webgl_enabled =
277 gpu_enabled() && 277 gpu_enabled() &&
278 !command_line.HasSwitch(switches::kDisable3DAPIs) &&
279 !command_line.HasSwitch(switches::kDisableExperimentalWebGL); 278 !command_line.HasSwitch(switches::kDisableExperimentalWebGL);
280 web_prefs.site_specific_quirks_enabled = 279 web_prefs.site_specific_quirks_enabled =
281 !command_line.HasSwitch(switches::kDisableSiteSpecificQuirks); 280 !command_line.HasSwitch(switches::kDisableSiteSpecificQuirks);
282 web_prefs.allow_file_access_from_file_urls = 281 web_prefs.allow_file_access_from_file_urls =
283 command_line.HasSwitch(switches::kAllowFileAccessFromFiles); 282 command_line.HasSwitch(switches::kAllowFileAccessFromFiles);
284 web_prefs.show_composited_layer_borders = 283 web_prefs.show_composited_layer_borders =
285 command_line.HasSwitch(switches::kShowCompositedLayerBorders); 284 command_line.HasSwitch(switches::kShowCompositedLayerBorders);
286 web_prefs.accelerated_compositing_enabled = 285 web_prefs.accelerated_compositing_enabled =
287 gpu_enabled() && 286 gpu_enabled() &&
288 !command_line.HasSwitch(switches::kDisableAcceleratedCompositing); 287 !command_line.HasSwitch(switches::kDisableAcceleratedCompositing);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 inspector_settings->SetWithoutPathExpansion(key, 335 inspector_settings->SetWithoutPathExpansion(key,
337 Value::CreateStringValue(value)); 336 Value::CreateStringValue(value));
338 } 337 }
339 338
340 void RenderViewHostDelegateHelper::ClearInspectorSettings(Profile* profile) { 339 void RenderViewHostDelegateHelper::ClearInspectorSettings(Profile* profile) {
341 DictionaryValue* inspector_settings = 340 DictionaryValue* inspector_settings =
342 profile->GetPrefs()->GetMutableDictionary( 341 profile->GetPrefs()->GetMutableDictionary(
343 prefs::kWebKitInspectorSettings); 342 prefs::kWebKitInspectorSettings);
344 inspector_settings->Clear(); 343 inspector_settings->Clear();
345 } 344 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/browser_render_process_host.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698