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

Unified Diff: remoting/webapp/crd/js/oauth2.js

Issue 963103004: Remove getCached* methods from remoting.Identity. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and jscompile fixes. Created 5 years, 10 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 | « remoting/webapp/crd/js/identity.js ('k') | remoting/webapp/crd/js/session_connector_impl.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/oauth2.js
diff --git a/remoting/webapp/crd/js/oauth2.js b/remoting/webapp/crd/js/oauth2.js
index a4b2b63204d20f0125cacfab4f1e0b76a2818007..0ad1f7a758f0710cd43ab48da35815e214e93d29 100644
--- a/remoting/webapp/crd/js/oauth2.js
+++ b/remoting/webapp/crd/js/oauth2.js
@@ -448,31 +448,3 @@ remoting.OAuth2.prototype.getUserInfo = function() {
reject);
});
};
-
-/**
- * If the user's email address is cached, return it, otherwise return null.
- *
- * @return {?string} The email address, if it has been cached by a previous call
- * to getEmail or getUserInfo, otherwise null.
- */
-remoting.OAuth2.prototype.getCachedEmail = function() {
- var value = window.localStorage.getItem(this.KEY_EMAIL_);
- if (typeof value == 'string') {
- return value;
- }
- return null;
-};
-
-/**
- * If the user's full name is cached, return it, otherwise return null.
- *
- * @return {?string} The user's full name, if it has been cached by a previous
- * call to getUserInfo, otherwise null.
- */
-remoting.OAuth2.prototype.getCachedUserFullName = function() {
- var value = window.localStorage.getItem(this.KEY_FULLNAME_);
- if (typeof value == 'string') {
- return value;
- }
- return null;
-};
« no previous file with comments | « remoting/webapp/crd/js/identity.js ('k') | remoting/webapp/crd/js/session_connector_impl.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698