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

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

Issue 11194020: Creates GCP promo for ChromeOS users with no cloud printers. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merge with trunk. Created 8 years, 2 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 | « chrome/app/generated_resources.grd ('k') | 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 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) {
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/resources/print_preview/data/app_state.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698