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

Side by Side Diff: chrome/common/pref_names.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/common/pref_names.h" 5 #include "chrome/common/pref_names.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "chrome/common/features.h" 9 #include "chrome/common/features.h"
10 #include "chrome/common/pref_font_webkit_names.h" 10 #include "chrome/common/pref_font_webkit_names.h"
(...skipping 1223 matching lines...) Expand 10 before | Expand all | Expand 10 after
1234 const char kPrintingEnabled[] = "printing.enabled"; 1234 const char kPrintingEnabled[] = "printing.enabled";
1235 1235
1236 // Boolean controlling whether print preview is disabled. 1236 // Boolean controlling whether print preview is disabled.
1237 const char kPrintPreviewDisabled[] = "printing.print_preview_disabled"; 1237 const char kPrintPreviewDisabled[] = "printing.print_preview_disabled";
1238 1238
1239 // A pref holding the value of the policy used to control default destination 1239 // A pref holding the value of the policy used to control default destination
1240 // selection in the Print Preview. See DefaultPrinterSelection policy. 1240 // selection in the Print Preview. See DefaultPrinterSelection policy.
1241 const char kPrintPreviewDefaultDestinationSelectionRules[] = 1241 const char kPrintPreviewDefaultDestinationSelectionRules[] =
1242 "printing.default_destination_selection_rules"; 1242 "printing.default_destination_selection_rules";
1243 1243
1244 #if !defined(OS_CHROMEOS)
1245 // A pref that sets the default destination in Print Preview to always be the
1246 // OS default printer instead of the most recently used destination.
1247 const char kPrintPreviewUseSystemDefaultPrinter[] =
1248 "printing.use_system_default_printer";
1249 #endif // !OS_CHROMEOS
1250
1244 #if defined(OS_CHROMEOS) 1251 #if defined(OS_CHROMEOS)
1245 // List of all printers that the user has configured. 1252 // List of all printers that the user has configured.
1246 const char kPrintingDevices[] = "printing.devices"; 1253 const char kPrintingDevices[] = "printing.devices";
1247 1254
1248 // List of printers configured by policy. 1255 // List of printers configured by policy.
1249 const char kRecommendedNativePrinters[] = 1256 const char kRecommendedNativePrinters[] =
1250 "native_printing.recommended_printers"; 1257 "native_printing.recommended_printers";
1251 #endif // OS_CHROMEOS 1258 #endif // OS_CHROMEOS
1252 1259
1253 // An integer pref specifying the fallback behavior for sites outside of content 1260 // An integer pref specifying the fallback behavior for sites outside of content
(...skipping 1311 matching lines...) Expand 10 before | Expand all | Expand 10 after
2565 // internal format (int64) in local store. (I.e., this is not a per-profile 2572 // internal format (int64) in local store. (I.e., this is not a per-profile
2566 // pref.) 2573 // pref.)
2567 const char kClipboardLastModifiedTime[] = "ui.clipboard.last_modified_time"; 2574 const char kClipboardLastModifiedTime[] = "ui.clipboard.last_modified_time";
2568 #endif 2575 #endif
2569 2576
2570 #if BUILDFLAG(ENABLE_OFFLINE_PAGES) 2577 #if BUILDFLAG(ENABLE_OFFLINE_PAGES)
2571 const char kOfflinePrefetchBackoff[] = "offline_prefetch.backoff"; 2578 const char kOfflinePrefetchBackoff[] = "offline_prefetch.backoff";
2572 #endif 2579 #endif
2573 2580
2574 } // namespace prefs 2581 } // namespace prefs
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698