1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 /** @suppress {duplicate} */
6 var remoting
= remoting
|| {};
13 * A simple implementation of AppRemotingAuth using the user's GAIA token.
15 * @implements{remoting.LicenseManager}
18 remoting
.GaiaLicenseManager = function() {};
21 * @param {string} oauthToken
22 * @return {Promise<!string>}
24 remoting
.GaiaLicenseManager
.prototype.getSubscriptionToken
=
25 function(oauthToken
) {
26 return Promise
.resolve(oauthToken
);
30 * @param {string} oauthToken
31 * @return {Promise<!string>}
33 remoting
.GaiaLicenseManager
.prototype.getAccessToken = function(oauthToken
) {
34 return Promise
.resolve("");