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

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: 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 base::Value::TYPE_BOOLEAN }, 111 base::Value::TYPE_BOOLEAN },
112 { key::kPasswordManagerAllowShowPasswords, 112 { key::kPasswordManagerAllowShowPasswords,
113 password_manager::prefs::kPasswordManagerAllowShowPasswords, 113 password_manager::prefs::kPasswordManagerAllowShowPasswords,
114 base::Value::TYPE_BOOLEAN }, 114 base::Value::TYPE_BOOLEAN },
115 { key::kPrintingEnabled, 115 { key::kPrintingEnabled,
116 prefs::kPrintingEnabled, 116 prefs::kPrintingEnabled,
117 base::Value::TYPE_BOOLEAN }, 117 base::Value::TYPE_BOOLEAN },
118 { key::kDisablePrintPreview, 118 { key::kDisablePrintPreview,
119 prefs::kPrintPreviewDisabled, 119 prefs::kPrintPreviewDisabled,
120 base::Value::TYPE_BOOLEAN }, 120 base::Value::TYPE_BOOLEAN },
121 { key::kPrintPreviewDefaultPrinterSelection,
122 prefs::kPrintPreviewDefaultDestinationSelectionRules,
123 base::Value::TYPE_BOOLEAN },
121 { key::kMetricsReportingEnabled, 124 { key::kMetricsReportingEnabled,
122 prefs::kMetricsReportingEnabled, 125 prefs::kMetricsReportingEnabled,
123 base::Value::TYPE_BOOLEAN }, 126 base::Value::TYPE_BOOLEAN },
124 { key::kApplicationLocaleValue, 127 { key::kApplicationLocaleValue,
125 prefs::kApplicationLocale, 128 prefs::kApplicationLocale,
126 base::Value::TYPE_STRING }, 129 base::Value::TYPE_STRING },
127 { key::kDisabledPlugins, 130 { key::kDisabledPlugins,
128 prefs::kPluginsDisabledPlugins, 131 prefs::kPluginsDisabledPlugins,
129 base::Value::TYPE_LIST }, 132 base::Value::TYPE_LIST },
130 { key::kDisabledPluginsExceptions, 133 { key::kDisabledPluginsExceptions,
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after
795 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, 798 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED,
796 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); 799 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED)));
797 handlers->AddHandler(make_scoped_ptr( 800 handlers->AddHandler(make_scoped_ptr(
798 new chromeos::KeyPermissionsPolicyHandler(chrome_schema))); 801 new chromeos::KeyPermissionsPolicyHandler(chrome_schema)));
799 #endif // defined(OS_CHROMEOS) 802 #endif // defined(OS_CHROMEOS)
800 803
801 return handlers.Pass(); 804 return handlers.Pass();
802 } 805 }
803 806
804 } // namespace policy 807 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698