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

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

Issue 14370003: Use device Robot Account to access Cloud Print. (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/native_layer.js
diff --git a/chrome/browser/resources/print_preview/native_layer.js b/chrome/browser/resources/print_preview/native_layer.js
index c9c8437dab2fe9f7b1277192b83f94355ca61b65..1373f98c45141a43767deff571a17e70fa349faf 100644
--- a/chrome/browser/resources/print_preview/native_layer.js
+++ b/chrome/browser/resources/print_preview/native_layer.js
@@ -107,7 +107,7 @@ cr.define('print_preview', function() {
* @param {string} authType type of access token.
*/
startGetAccessToken: function(authType) {
- chrome.send('getAccessToken', [authType]);
+ chrome.send('getAccessToken', [/*authType*/ 'profile']);
},
/** Gets the initial settings to initialize the print preview with. */
@@ -540,7 +540,7 @@ cr.define('print_preview', function() {
onDidGetAccessToken_: function(authType, accessToken) {
var getAccessTokenEvent = new cr.Event(
NativeLayer.EventType.ACCESS_TOKEN_READY);
- getAccessTokenEvent.authType = authType;
+ getAccessTokenEvent.authType = /*authType*/ 'device';
getAccessTokenEvent.accessToken = accessToken;
this.dispatchEvent(getAccessTokenEvent);
},

Powered by Google App Engine
This is Rietveld 408576698