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

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

Issue 2935303003: Print Preview: Remove global onPrivetPrintFailed (Closed)
Patch Set: Fix annotations 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..dbe483656c626fed221a56f364bce64713813d9f 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 =
@@ -151,7 +150,6 @@ cr.define('print_preview', function() {
'print_preview.NativeLayer.PREVIEW_GENERATION_FAIL',
PRINT_TO_CLOUD: 'print_preview.NativeLayer.PRINT_TO_CLOUD',
SETTINGS_INVALID: 'print_preview.NativeLayer.SETTINGS_INVALID',
- PRIVET_PRINT_FAILED: 'print_preview.NativeLayer.PRIVET_PRINT_FAILED',
PRINT_PRESET_OPTIONS: 'print_preview.NativeLayer.PRINT_PRESET_OPTIONS',
PROVISIONAL_DESTINATION_RESOLVED:
'print_preview.NativeLayer.PROVISIONAL_DESTINATION_RESOLVED'
@@ -732,18 +730,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