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

Unified Diff: chrome/browser/resources/file_manager/js/cws_container_client.js

Issue 23494024: [Files.app] Pass the access token to the widget by the 'initialize' message (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 3 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 | « no previous file | chrome/browser/resources/file_manager/js/suggest_apps_dialog.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/file_manager/js/cws_container_client.js
diff --git a/chrome/browser/resources/file_manager/js/cws_container_client.js b/chrome/browser/resources/file_manager/js/cws_container_client.js
index f380fbeb3b3d59db95b3be0a6a7b7ffeae741b49..e97709db9d4148a840e864cbc7c7549bd8f47a23 100644
--- a/chrome/browser/resources/file_manager/js/cws_container_client.js
+++ b/chrome/browser/resources/file_manager/js/cws_container_client.js
@@ -12,9 +12,11 @@
* @param {number} height Height of the CWS widget.
* @param {string} url Share Url for an entry.
* @param {string} target Target (scheme + host + port) of the widget.
+ * @param {string} token Access token to access CWS.
* @constructor
*/
-function CWSContainerClient(webView, ext, mime, width, height, url, target) {
+function CWSContainerClient(
+ webView, ext, mime, width, height, url, target, token) {
this.webView_ = webView;
this.ext_ = ext;
this.mime_ = mime;
@@ -22,6 +24,7 @@ function CWSContainerClient(webView, ext, mime, width, height, url, target) {
this.height_ = height;
this.url_ = url;
this.target_ = target;
+ this.token_ = token;
this.loaded_ = false;
this.loading_ = false;
@@ -187,6 +190,7 @@ CWSContainerClient.prototype.postInitializeMessage_ = function() {
height: this.height_,
file_extension: this.ext_,
mime_type: this.mime_,
+ access_token: this.token_,
v: 1
};
@@ -239,4 +243,3 @@ CWSContainerClient.prototype.abort = function() {
CWSContainerClient.prototype.dispose = function() {
this.abort();
};
-
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/js/suggest_apps_dialog.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698