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

Unified Diff: chrome/browser/resources/options/browser_options.js

Issue 2464403003: [CUPS] Implement the "Printers" section in chrome://settings. (Closed)
Patch Set: Address michaelpg@'s comment. Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/options/browser_options.js
diff --git a/chrome/browser/resources/options/browser_options.js b/chrome/browser/resources/options/browser_options.js
index 70d8cf84e59ea2bef6aa89665ec5dd085ed74e34..bcce79b0825f894363abb9b24c07fce1a802130e 100644
--- a/chrome/browser/resources/options/browser_options.js
+++ b/chrome/browser/resources/options/browser_options.js
@@ -716,6 +716,16 @@ cr.define('options', function() {
};
}
+ // CUPS Print section (CrOS only).
+ if (cr.isChromeOS) {
+ if (loadTimeData.getBoolean('cupsPrintEnabled')) {
+ $('cups-printers-section').hidden = false;
+ $('cupsPrintersManageButton').onclick = function() {
+ chrome.send('showCupsPrintDevicesPage');
+ };
+ }
+ }
+
if (loadTimeData.getBoolean('cloudPrintShowMDnsOptions')) {
$('cloudprint-options-mdns').hidden = false;
$('cloudPrintDevicesPageButton').onclick = function() {
« no previous file with comments | « chrome/browser/resources/options/browser_options.html ('k') | chrome/browser/ui/webui/options/browser_options_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698