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

Unified Diff: chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.js

Issue 2489953004: Remove Nearby printer UI from settings. (Closed)
Patch Set: 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
« no previous file with comments | « chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 105039c3bc05e3ea463d544c1a02f40503e32a3b..1eebf826293651a382b3cf55f4f0ba777c5bd993 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
@@ -363,7 +363,8 @@ Polymer({
/** Opens the Add printer discovery dialog. */
open: function() {
this.resetData_();
- this.switchDialog_('', AddPrinterDialogs.DISCOVERY, 'showDiscoveryDialog_');
+ this.switchDialog_(
+ '', AddPrinterDialogs.MANUALLY, 'showManuallyAddDialog_');
},
/**
@@ -435,10 +436,7 @@ Polymer({
/** @private */
configuringDialogClosed_: function() {
- if (this.previousDialog_ == AddPrinterDialogs.DISCOVERY) {
- this.switchDialog_(
- this.currentDialog_, this.previousDialog_, 'showDiscoveryDialog_');
- } else if (this.previousDialog_ == AddPrinterDialogs.MANUALLY) {
+ if (this.previousDialog_ == AddPrinterDialogs.MANUALLY) {
this.switchDialog_(
this.currentDialog_, this.previousDialog_, 'showManuallyAddDialog_');
} else if (this.previousDialog_ == AddPrinterDialogs.MANUFACTURER) {
« no previous file with comments | « chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698