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

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

Issue 1368013004: Define Print Preview default printer selection policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove command line switch, change policy name, bettter policy Created 5 years, 2 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
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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 base::Value::TYPE_BOOLEAN }, 115 base::Value::TYPE_BOOLEAN },
116 { key::kPasswordManagerAllowShowPasswords, 116 { key::kPasswordManagerAllowShowPasswords,
117 password_manager::prefs::kPasswordManagerAllowShowPasswords, 117 password_manager::prefs::kPasswordManagerAllowShowPasswords,
118 base::Value::TYPE_BOOLEAN }, 118 base::Value::TYPE_BOOLEAN },
119 { key::kPrintingEnabled, 119 { key::kPrintingEnabled,
120 prefs::kPrintingEnabled, 120 prefs::kPrintingEnabled,
121 base::Value::TYPE_BOOLEAN }, 121 base::Value::TYPE_BOOLEAN },
122 { key::kDisablePrintPreview, 122 { key::kDisablePrintPreview,
123 prefs::kPrintPreviewDisabled, 123 prefs::kPrintPreviewDisabled,
124 base::Value::TYPE_BOOLEAN }, 124 base::Value::TYPE_BOOLEAN },
125 { key::kDefaultPrinterSelection,
126 prefs::kPrintPreviewDefaultDestinationSelectionRules,
127 base::Value::TYPE_STRING },
125 { key::kMetricsReportingEnabled, 128 { key::kMetricsReportingEnabled,
126 metrics::prefs::kMetricsReportingEnabled, 129 metrics::prefs::kMetricsReportingEnabled,
127 base::Value::TYPE_BOOLEAN }, 130 base::Value::TYPE_BOOLEAN },
128 { key::kApplicationLocaleValue, 131 { key::kApplicationLocaleValue,
129 prefs::kApplicationLocale, 132 prefs::kApplicationLocale,
130 base::Value::TYPE_STRING }, 133 base::Value::TYPE_STRING },
131 { key::kDisabledPlugins, 134 { key::kDisabledPlugins,
132 prefs::kPluginsDisabledPlugins, 135 prefs::kPluginsDisabledPlugins,
133 base::Value::TYPE_LIST }, 136 base::Value::TYPE_LIST },
134 { key::kDisabledPluginsExceptions, 137 { key::kDisabledPluginsExceptions,
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, 799 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED,
797 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); 800 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED)));
798 handlers->AddHandler(make_scoped_ptr( 801 handlers->AddHandler(make_scoped_ptr(
799 new chromeos::KeyPermissionsPolicyHandler(chrome_schema))); 802 new chromeos::KeyPermissionsPolicyHandler(chrome_schema)));
800 #endif // defined(OS_CHROMEOS) 803 #endif // defined(OS_CHROMEOS)
801 804
802 return handlers.Pass(); 805 return handlers.Pass();
803 } 806 }
804 807
805 } // namespace policy 808 } // namespace policy
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_impl.cc » ('j') | components/policy/resources/policy_templates.json » ('J')

Powered by Google App Engine
This is Rietveld 408576698