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

Unified Diff: chrome/browser/resources/print_preview/data/cloud_parsers.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
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,
« no previous file with comments | « chrome/browser/resources/print_preview/data/app_state.js ('k') | chrome/browser/resources/print_preview/data/destination.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698