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

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

Issue 518063002: Settings to control Add Person and Browse as Guest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Completely move prefs Created 6 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
« no previous file with comments | « chrome/browser/browser_process_impl.cc ('k') | chrome/browser/profiles/profiles_state.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/values.h" 10 #include "base/values.h"
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 base::Value::TYPE_BOOLEAN }, 476 base::Value::TYPE_BOOLEAN },
477 #endif // defined(OS_ANDROID) 477 #endif // defined(OS_ANDROID)
478 478
479 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) && !defined(OS_IOS) 479 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) && !defined(OS_IOS)
480 { key::kNativeMessagingUserLevelHosts, 480 { key::kNativeMessagingUserLevelHosts,
481 extensions::pref_names::kNativeMessagingUserLevelHosts, 481 extensions::pref_names::kNativeMessagingUserLevelHosts,
482 base::Value::TYPE_BOOLEAN }, 482 base::Value::TYPE_BOOLEAN },
483 { key::kBrowserGuestModeEnabled, 483 { key::kBrowserGuestModeEnabled,
484 prefs::kBrowserGuestModeEnabled, 484 prefs::kBrowserGuestModeEnabled,
485 base::Value::TYPE_BOOLEAN }, 485 base::Value::TYPE_BOOLEAN },
486 { key::kBrowserAddPersonEnabled,
487 prefs::kBrowserAddPersonEnabled,
488 base::Value::TYPE_BOOLEAN },
486 #endif // !defined(OS_CHROMEOS) && !defined(OS_ANDROID) && !defined(OS_IOS) 489 #endif // !defined(OS_CHROMEOS) && !defined(OS_ANDROID) && !defined(OS_IOS)
487 }; 490 };
488 491
489 #if defined(ENABLE_EXTENSIONS) 492 #if defined(ENABLE_EXTENSIONS)
490 void GetExtensionAllowedTypesMap( 493 void GetExtensionAllowedTypesMap(
491 ScopedVector<StringMappingListPolicyHandler::MappingEntry>* result) { 494 ScopedVector<StringMappingListPolicyHandler::MappingEntry>* result) {
492 // Mapping from extension type names to Manifest::Type. 495 // Mapping from extension type names to Manifest::Type.
493 result->push_back(new StringMappingListPolicyHandler::MappingEntry( 496 result->push_back(new StringMappingListPolicyHandler::MappingEntry(
494 "extension", scoped_ptr<base::Value>(new base::FundamentalValue( 497 "extension", scoped_ptr<base::Value>(new base::FundamentalValue(
495 extensions::Manifest::TYPE_EXTENSION)))); 498 extensions::Manifest::TYPE_EXTENSION))));
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 chrome_schema, 792 chrome_schema,
790 SCHEMA_STRICT, 793 SCHEMA_STRICT,
791 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, 794 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED,
792 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); 795 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED)));
793 #endif // defined(OS_CHROMEOS) 796 #endif // defined(OS_CHROMEOS)
794 797
795 return handlers.Pass(); 798 return handlers.Pass();
796 } 799 }
797 800
798 } // namespace policy 801 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/browser_process_impl.cc ('k') | chrome/browser/profiles/profiles_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698