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 5f994f9a5402f1cea4a5daf03e7433fd542e5825..fd1ae6b7c093014d52b001878b9590fa3de3b31f 100644 |
--- a/chrome/browser/resources/print_preview/cloud_print_interface.js |
+++ b/chrome/browser/resources/print_preview/cloud_print_interface.js |
@@ -19,7 +19,7 @@ cr.define('cloudprint', function() { |
* @type {string} |
* @private |
*/ |
- this.baseURL_ = baseUrl; |
+ this.baseUrl_ = baseUrl; |
/** |
* Last received XSRF token. Sent as a parameter in every request. |
@@ -93,6 +93,11 @@ cr.define('cloudprint', function() { |
CloudPrintInterface.prototype = { |
__proto__: cr.EventTarget.prototype, |
+ /** @return {string} Base URL of the Google Cloud Print service. */ |
+ get baseUrl() { |
+ return this.baseUrl_; |
+ }, |
+ |
/** |
* Sends a Google Cloud Print search API request. |
* @param {boolean} isRecent Whether to search for only recently used |
@@ -247,7 +252,7 @@ cr.define('cloudprint', function() { |
// TODO(rltoscano): Should throw an error if not a read-only action or |
// issue an xsrf token request. |
} |
- var url = this.baseURL_ + '/' + action + '?xsrf=' + this.xsrfToken_; |
+ var url = this.baseUrl_ + '/' + action + '?xsrf=' + this.xsrfToken_; |
var body = null; |
if (params) { |