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

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

Issue 14340003: Rename AuthType to Origin of destination. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/resources/print_preview/data/app_state.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/print_preview/cloud_print_interface.js
diff --git a/chrome/browser/resources/print_preview/cloud_print_interface.js b/chrome/browser/resources/print_preview/cloud_print_interface.js
index 195ddc44fe4a6888df5a57799eda6db2f416b0ae..ea6b271bb31bb0f2ffcd11a020c55d0a3937b8bd 100644
--- a/chrome/browser/resources/print_preview/cloud_print_interface.js
+++ b/chrome/browser/resources/print_preview/cloud_print_interface.js
@@ -350,7 +350,7 @@ cr.define('cloudprint', function() {
try {
printerList.push(
cloudprint.CloudDestinationParser.parse(
- printerJson, print_preview.Destination.AuthType.COOKIES));
+ printerJson, print_preview.Destination.Origin.COOKIES));
} catch (err) {
console.error('Unable to parse cloud print destination: ' + err);
}
@@ -400,7 +400,7 @@ cr.define('cloudprint', function() {
var printer;
try {
printer = cloudprint.CloudDestinationParser.parse(
- printerJson, print_preview.Destination.AuthType.COOKIES);
+ printerJson, print_preview.Destination.Origin.COOKIES);
} catch (err) {
console.error('Failed to parse cloud print destination: ' +
JSON.stringify(printerJson));
@@ -414,6 +414,7 @@ cr.define('cloudprint', function() {
var errorEvent = this.createErrorEvent_(
CloudPrintInterface.EventType.PRINTER_FAILED, status, result);
errorEvent.destinationId = destinationId;
+ errorEvent.destinationOrigin = print_preview.Destination.Origin.COOKIES;
this.dispatchEvent(errorEvent);
}
},
« no previous file with comments | « no previous file | chrome/browser/resources/print_preview/data/app_state.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698