Index: chrome/browser/resources/settings/printing_page/cups_printers_browser_proxy.js |
diff --git a/chrome/browser/resources/settings/printing_page/cups_printers_browser_proxy.js b/chrome/browser/resources/settings/printing_page/cups_printers_browser_proxy.js |
index c866a6c6978960a37ca43fe02bb48e9459b9b135..3b4e4e24b326df715866d08787def2f53b723ba3 100644 |
--- a/chrome/browser/resources/settings/printing_page/cups_printers_browser_proxy.js |
+++ b/chrome/browser/resources/settings/printing_page/cups_printers_browser_proxy.js |
@@ -49,13 +49,19 @@ cr.define('settings', function() { |
/** |
* @param {string} printerId |
+ * @param {string} printerName |
*/ |
- removeCupsPrinter: function(printerId) {}, |
+ removeCupsPrinter: function(printerId, printerName) {}, |
/** |
* @return {!Promise<string>} The full path of the printer PPD file. |
*/ |
getCupsPrinterPPDPath: function() {}, |
+ |
+ /** |
+ * @param {!CupsPrinterInfo} newPrinter |
+ */ |
+ addCupsPrinter: function(newPrinter) {}, |
}; |
/** |
@@ -77,8 +83,13 @@ cr.define('settings', function() { |
}, |
/** @override */ |
- removeCupsPrinter: function(printerId) { |
- chrome.send('removeCupsPrinter', [printerId]); |
+ removeCupsPrinter: function(printerId, printerName) { |
+ chrome.send('removeCupsPrinter', [printerId, printerName]); |
+ }, |
+ |
+ /** @override */ |
+ addCupsPrinter: function(newPrinter) { |
+ chrome.send('addCupsPrinter', [newPrinter]); |
}, |
/** @override */ |