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

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: Rename AuthType to Origin. 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 b43a35b8be626643d48ebaadb2dd069f171d6577..073e328a94cc0546cae4060fa807715a7fc2051b 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,

Powered by Google App Engine
This is Rietveld 408576698