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

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

Issue 2885363003: Add policy to use system default printer (Closed)
Patch Set: Fix dynamic refresh Created 3 years, 6 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 <limits.h> 7 #include <limits.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <utility> 10 #include <utility>
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 base::Value::Type::STRING }, 609 base::Value::Type::STRING },
610 #endif // defined(OS_ANDROID) 610 #endif // defined(OS_ANDROID)
611 611
612 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) 612 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID)
613 { key::kNativeMessagingUserLevelHosts, 613 { key::kNativeMessagingUserLevelHosts,
614 extensions::pref_names::kNativeMessagingUserLevelHosts, 614 extensions::pref_names::kNativeMessagingUserLevelHosts,
615 base::Value::Type::BOOLEAN }, 615 base::Value::Type::BOOLEAN },
616 { key::kBrowserAddPersonEnabled, 616 { key::kBrowserAddPersonEnabled,
617 prefs::kBrowserAddPersonEnabled, 617 prefs::kBrowserAddPersonEnabled,
618 base::Value::Type::BOOLEAN }, 618 base::Value::Type::BOOLEAN },
619 { key::kPrintPreviewUseSystemDefaultPrinter,
Lei Zhang 2017/06/16 21:47:43 So if we are going to put this in a (!defined(OS_C
rbpotter 2017/06/19 23:10:49 Done.
620 prefs::kPrintPreviewUseSystemDefaultPrinter,
621 base::Value::Type::BOOLEAN },
619 #endif // !defined(OS_CHROMEOS) && !defined(OS_ANDROID) 622 #endif // !defined(OS_CHROMEOS) && !defined(OS_ANDROID)
620 623
621 { key::kForceBrowserSignin, 624 { key::kForceBrowserSignin,
622 prefs::kForceBrowserSignin, 625 prefs::kForceBrowserSignin,
623 base::Value::Type::BOOLEAN }, 626 base::Value::Type::BOOLEAN },
624 627
625 #if defined(OS_WIN) 628 #if defined(OS_WIN)
626 { key::kWelcomePageOnOSUpgradeEnabled, 629 { key::kWelcomePageOnOSUpgradeEnabled,
627 prefs::kWelcomePageOnOSUpgradeEnabled, 630 prefs::kWelcomePageOnOSUpgradeEnabled,
628 base::Value::Type::BOOLEAN }, 631 base::Value::Type::BOOLEAN },
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
1044 #endif // defined(OS_CHROMEOS) 1047 #endif // defined(OS_CHROMEOS)
1045 1048
1046 #if BUILDFLAG(ENABLE_PLUGINS) 1049 #if BUILDFLAG(ENABLE_PLUGINS)
1047 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>()); 1050 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>());
1048 #endif // BUILDFLAG(ENABLE_PLUGINS) 1051 #endif // BUILDFLAG(ENABLE_PLUGINS)
1049 1052
1050 return handlers; 1053 return handlers;
1051 } 1054 }
1052 1055
1053 } // namespace policy 1056 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698