| Index: chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.js
|
| diff --git a/chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.js b/chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.js
|
| index 6d20849152c471b9a9a611ea1424de0ca9cb0742..3fc4f99928058d0c7424759ec5e781336a8aeae0 100644
|
| --- a/chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.js
|
| +++ b/chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.js
|
| @@ -58,14 +58,14 @@ Polymer({
|
|
|
| /** @override */
|
| ready: function() {
|
| - settings.CupsPrintersBrowserProxyImpl.getInstance().
|
| - startDiscoveringPrinters();
|
| - this.addWebUIListener('on-printer-discovered',
|
| - this.onPrinterDiscovered_.bind(this));
|
| - this.addWebUIListener('on-printer-discovery-done',
|
| - this.onPrinterDiscoveryDone_.bind(this));
|
| - this.addWebUIListener('on-printer-discovery-failed',
|
| - this.onPrinterDiscoveryDone_.bind(this));
|
| + settings.CupsPrintersBrowserProxyImpl.getInstance()
|
| + .startDiscoveringPrinters();
|
| + this.addWebUIListener(
|
| + 'on-printer-discovered', this.onPrinterDiscovered_.bind(this));
|
| + this.addWebUIListener(
|
| + 'on-printer-discovery-done', this.onPrinterDiscoveryDone_.bind(this));
|
| + this.addWebUIListener(
|
| + 'on-printer-discovery-failed', this.onPrinterDiscoveryDone_.bind(this));
|
| },
|
|
|
| /**
|
| @@ -91,8 +91,8 @@ Polymer({
|
|
|
| /** @private */
|
| stopDiscoveringPrinters_: function() {
|
| - settings.CupsPrintersBrowserProxyImpl.getInstance().
|
| - stopDiscoveringPrinters();
|
| + settings.CupsPrintersBrowserProxyImpl.getInstance()
|
| + .stopDiscoveringPrinters();
|
| this.discovering_ = false;
|
| },
|
|
|
| @@ -207,9 +207,9 @@ Polymer({
|
|
|
| /** @override */
|
| ready: function() {
|
| - settings.CupsPrintersBrowserProxyImpl.getInstance().
|
| - getCupsPrinterManufacturersList().then(
|
| - this.manufacturerListChanged_.bind(this));
|
| + settings.CupsPrintersBrowserProxyImpl.getInstance()
|
| + .getCupsPrinterManufacturersList()
|
| + .then(this.manufacturerListChanged_.bind(this));
|
| },
|
|
|
| /**
|
| @@ -227,8 +227,9 @@ Polymer({
|
|
|
| /** @private */
|
| onBrowseFile_: function() {
|
| - settings.CupsPrintersBrowserProxyImpl.getInstance().
|
| - getCupsPrinterPPDPath().then(this.printerPPDPathChanged_.bind(this));
|
| + settings.CupsPrintersBrowserProxyImpl.getInstance()
|
| + .getCupsPrinterPPDPath()
|
| + .then(this.printerPPDPathChanged_.bind(this));
|
| },
|
|
|
| /**
|
| @@ -295,8 +296,8 @@ Polymer({
|
|
|
| /** @override */
|
| attached: function() {
|
| - this.$.configuringMessage.textContent = loadTimeData.getStringF(
|
| - 'printerConfiguringMessage', this.printerName);
|
| + this.$.configuringMessage.textContent =
|
| + loadTimeData.getStringF('printerConfiguringMessage', this.printerName);
|
| },
|
|
|
| /** @private */
|
| @@ -406,14 +407,16 @@ Polymer({
|
|
|
| /** @private */
|
| openManuallyAddPrinterDialog_: function() {
|
| - this.switchDialog_(this.currentDialog_, AddPrinterDialogs.MANUALLY,
|
| - 'showManuallyAddDialog_');
|
| + this.switchDialog_(
|
| + this.currentDialog_, AddPrinterDialogs.MANUALLY,
|
| + 'showManuallyAddDialog_');
|
| },
|
|
|
| /** @private */
|
| openDiscoveryPrintersDialog_: function() {
|
| - this.switchDialog_(this.currentDialog_, AddPrinterDialogs.DISCOVERY,
|
| - 'showDiscoveryDialog_');
|
| + this.switchDialog_(
|
| + this.currentDialog_, AddPrinterDialogs.DISCOVERY,
|
| + 'showDiscoveryDialog_');
|
| },
|
|
|
| /** @private */
|
| @@ -436,8 +439,9 @@ Polymer({
|
|
|
| /** @private */
|
| openManufacturerModelDialog_: function() {
|
| - this.switchDialog_(this.currentDialog_, AddPrinterDialogs.MANUFACTURER,
|
| - 'showManufacturerDialog_');
|
| + this.switchDialog_(
|
| + this.currentDialog_, AddPrinterDialogs.MANUFACTURER,
|
| + 'showManufacturerDialog_');
|
| },
|
|
|
| /** @private */
|
|
|