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

Side by Side Diff: chrome/browser/policy/configuration_policy_handler_list_factory.cc

Issue 1217333002: Add a group policy for hardware acceleration. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/policy/policy_browsertest.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/policy/configuration_policy_handler_list_factory.h" 5 #include "chrome/browser/policy/configuration_policy_handler_list_factory.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "base/prefs/pref_value_map.h" 10 #include "base/prefs/pref_value_map.h"
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 base::Value::TYPE_INTEGER }, 320 base::Value::TYPE_INTEGER },
321 { key::kDisableSafeBrowsingProceedAnyway, 321 { key::kDisableSafeBrowsingProceedAnyway,
322 prefs::kSafeBrowsingProceedAnywayDisabled, 322 prefs::kSafeBrowsingProceedAnywayDisabled,
323 base::Value::TYPE_BOOLEAN }, 323 base::Value::TYPE_BOOLEAN },
324 { key::kSafeBrowsingExtendedReportingOptInAllowed, 324 { key::kSafeBrowsingExtendedReportingOptInAllowed,
325 prefs::kSafeBrowsingExtendedReportingOptInAllowed, 325 prefs::kSafeBrowsingExtendedReportingOptInAllowed,
326 base::Value::TYPE_BOOLEAN }, 326 base::Value::TYPE_BOOLEAN },
327 { key::kSSLErrorOverrideAllowed, 327 { key::kSSLErrorOverrideAllowed,
328 prefs::kSSLErrorOverrideAllowed, 328 prefs::kSSLErrorOverrideAllowed,
329 base::Value::TYPE_BOOLEAN }, 329 base::Value::TYPE_BOOLEAN },
330 { key::kHardwareAccelerationModeEnabled,
331 prefs::kHardwareAccelerationModeEnabled,
332 base::Value::TYPE_BOOLEAN },
330 333
331 #if defined(ENABLE_SPELLCHECK) 334 #if defined(ENABLE_SPELLCHECK)
332 { key::kSpellCheckServiceEnabled, 335 { key::kSpellCheckServiceEnabled,
333 prefs::kSpellCheckUseSpellingService, 336 prefs::kSpellCheckUseSpellingService,
334 base::Value::TYPE_BOOLEAN }, 337 base::Value::TYPE_BOOLEAN },
335 #endif // defined(ENABLE_SPELLCHECK) 338 #endif // defined(ENABLE_SPELLCHECK)
336 339
337 { key::kDisableScreenshots, 340 { key::kDisableScreenshots,
338 prefs::kDisableScreenshots, 341 prefs::kDisableScreenshots,
339 base::Value::TYPE_BOOLEAN }, 342 base::Value::TYPE_BOOLEAN },
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
785 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, 788 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED,
786 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); 789 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED)));
787 handlers->AddHandler(make_scoped_ptr( 790 handlers->AddHandler(make_scoped_ptr(
788 new chromeos::KeyPermissionsPolicyHandler(chrome_schema))); 791 new chromeos::KeyPermissionsPolicyHandler(chrome_schema)));
789 #endif // defined(OS_CHROMEOS) 792 #endif // defined(OS_CHROMEOS)
790 793
791 return handlers.Pass(); 794 return handlers.Pass();
792 } 795 }
793 796
794 } // namespace policy 797 } // namespace policy
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/policy/policy_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698