Index: chrome/browser/resources/print_preview/data/cloud_parsers.js |
diff --git a/chrome/browser/resources/print_preview/data/cloud_parsers.js b/chrome/browser/resources/print_preview/data/cloud_parsers.js |
index 4050a3280ddb5643dbe7a2ca67eb38d957327f78..1b16d3967072f71f66dad994a5748f0efc6f2bf4 100644 |
--- a/chrome/browser/resources/print_preview/data/cloud_parsers.js |
+++ b/chrome/browser/resources/print_preview/data/cloud_parsers.js |
@@ -56,11 +56,11 @@ cr.define('cloudprint', function() { |
* response. |
* @param {!Object} json Object that represents a Google Cloud Print search or |
* printer response. |
- * @param {!print_preview.Destination.AuthType} authType The authentication |
- * type used to find printer. |
+ * @param {!print_preview.Destination.Origin} origin The origin of the |
+ * response. |
* @return {!print_preview.Destination} Parsed destination. |
*/ |
- CloudDestinationParser.parse = function(json, authType) { |
+ CloudDestinationParser.parse = function(json, origin) { |
if (!json.hasOwnProperty(CloudDestinationParser.Field_.ID) || |
!json.hasOwnProperty(CloudDestinationParser.Field_.TYPE) || |
!json.hasOwnProperty(CloudDestinationParser.Field_.DISPLAY_NAME)) { |
@@ -83,7 +83,7 @@ cr.define('cloudprint', function() { |
id, |
CloudDestinationParser.parseType_( |
json[CloudDestinationParser.Field_.TYPE]), |
- authType, |
+ origin, |
json[CloudDestinationParser.Field_.DISPLAY_NAME], |
arrayContains(tags, CloudDestinationParser.RECENT_TAG_) /*isRecent*/, |
connectionStatus, |