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

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: Address comments 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 600 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 #endif // !defined(OS_CHROMEOS) && !defined(OS_ANDROID) 619 #endif // !defined(OS_CHROMEOS) && !defined(OS_ANDROID)
620 620
621 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) && !defined(OS_IOS)
Lei Zhang 2017/06/19 23:41:40 I'm not 100% sure, but I thought there's no iOS co
Eugene But (OOO till 7-30) 2017/06/20 00:53:57 I confirm that there is no iOS code in chrome/
Lei Zhang 2017/06/20 00:56:25 Thanks! Should we in a separate CL, clear out the
rbpotter 2017/06/20 02:58:25 Removed all newly added IOS checks.
622 { key::kPrintPreviewUseSystemDefaultPrinter,
623 prefs::kPrintPreviewUseSystemDefaultPrinter,
624 base::Value::Type::BOOLEAN },
625 #endif // !defined(OS_CHROMEOS) && !defined(OS_ANDROID) && !defined(OS_IOS)
626
621 { key::kForceBrowserSignin, 627 { key::kForceBrowserSignin,
622 prefs::kForceBrowserSignin, 628 prefs::kForceBrowserSignin,
623 base::Value::Type::BOOLEAN }, 629 base::Value::Type::BOOLEAN },
624 630
625 #if defined(OS_WIN) 631 #if defined(OS_WIN)
626 { key::kWelcomePageOnOSUpgradeEnabled, 632 { key::kWelcomePageOnOSUpgradeEnabled,
627 prefs::kWelcomePageOnOSUpgradeEnabled, 633 prefs::kWelcomePageOnOSUpgradeEnabled,
628 base::Value::Type::BOOLEAN }, 634 base::Value::Type::BOOLEAN },
629 #endif // OS_WIN 635 #endif // OS_WIN
630 636
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
1044 #endif // defined(OS_CHROMEOS) 1050 #endif // defined(OS_CHROMEOS)
1045 1051
1046 #if BUILDFLAG(ENABLE_PLUGINS) 1052 #if BUILDFLAG(ENABLE_PLUGINS)
1047 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>()); 1053 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>());
1048 #endif // BUILDFLAG(ENABLE_PLUGINS) 1054 #endif // BUILDFLAG(ENABLE_PLUGINS)
1049 1055
1050 return handlers; 1056 return handlers;
1051 } 1057 }
1052 1058
1053 } // namespace policy 1059 } // namespace policy
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/prefs/chrome_command_line_pref_store.cc » ('j') | chrome/common/pref_names.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698