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

Unified Diff: chrome/browser/resources/print_preview/native_layer.js

Issue 2935303003: Print Preview: Remove global onPrivetPrintFailed (Closed)
Patch Set: Fix 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/print_preview/native_layer.js
diff --git a/chrome/browser/resources/print_preview/native_layer.js b/chrome/browser/resources/print_preview/native_layer.js
index f4e69846a4ae5aa07fba85ee84478b423555b11d..411b1907e4c60b1485557e271f9847625e01b5a6 100644
--- a/chrome/browser/resources/print_preview/native_layer.js
+++ b/chrome/browser/resources/print_preview/native_layer.js
@@ -92,7 +92,6 @@ cr.define('print_preview', function() {
global.onDidPreviewPage = this.onDidPreviewPage_.bind(this);
global.updatePrintPreview = this.onUpdatePrintPreview_.bind(this);
global.onDidGetAccessToken = this.onDidGetAccessToken_.bind(this);
- global.onPrivetPrintFailed = this.onPrivetPrintFailed_.bind(this);
global.onEnableManipulateSettingsForTest =
this.onEnableManipulateSettingsForTest_.bind(this);
global.printPresetOptionsFromDocument =
@@ -732,18 +731,6 @@ cr.define('print_preview', function() {
this.eventTarget_.dispatchEvent(printPresetOptionsEvent);
},
- /**
- * @param {string} http_error The HTTP response code or -1 if not an HTTP
- * error.
- * @private
- */
- onPrivetPrintFailed_: function(http_error) {
- var privetPrintFailedEvent =
- new Event(NativeLayer.EventType.PRIVET_PRINT_FAILED);
- privetPrintFailedEvent.httpError = http_error;
- this.eventTarget_.dispatchEvent(privetPrintFailedEvent);
- },
-
/**
* Called when Chrome reports that attempt to resolve a provisional
* destination failed.

Powered by Google App Engine
This is Rietveld 408576698