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

Side by Side Diff: remoting/webapp/oauth2.js

Issue 9148043: Rename webapp_it2me to remoting_webapp and move it from webapp/me2mom to webapp/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add webapp_it2me back Created 8 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/webapp/me2mom/xhr.js ('k') | remoting/webapp/oauth2_callback.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview 6 * @fileoverview
7 * OAuth2 class that handles retrieval/storage of an OAuth2 token. 7 * OAuth2 class that handles retrieval/storage of an OAuth2 token.
8 * 8 *
9 * Uses a content script to trampoline the OAuth redirect page back into the 9 * Uses a content script to trampoline the OAuth redirect page back into the
10 * extension context. This works around the lack of native support for 10 * extension context. This works around the lack of native support for
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 * @return {?string} The email address, if it has been cached by a previous call 339 * @return {?string} The email address, if it has been cached by a previous call
340 * to getEmail, otherwise null. 340 * to getEmail, otherwise null.
341 */ 341 */
342 remoting.OAuth2.prototype.getCachedEmail = function() { 342 remoting.OAuth2.prototype.getCachedEmail = function() {
343 var value = window.localStorage.getItem(this.KEY_EMAIL_); 343 var value = window.localStorage.getItem(this.KEY_EMAIL_);
344 if (typeof value == 'string') { 344 if (typeof value == 'string') {
345 return value; 345 return value;
346 } 346 }
347 return null; 347 return null;
348 }; 348 };
OLDNEW
« no previous file with comments | « remoting/webapp/me2mom/xhr.js ('k') | remoting/webapp/oauth2_callback.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698