diff options
author | jamiewalch@google.com <jamiewalch@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-27 01:07:53 +0000 |
---|---|---|
committer | jamiewalch@google.com <jamiewalch@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-27 01:07:53 +0000 |
commit | cf4b8e3ace0b430a3bb73d45a3af0a146b0d846e (patch) | |
tree | 65b8d5b7c6a649354202700f68fe1b32b92f355f | |
parent | 7aec2f22c3d99beb102b72d666d947a770627c43 (diff) | |
download | chromium_src-cf4b8e3ace0b430a3bb73d45a3af0a146b0d846e.zip chromium_src-cf4b8e3ace0b430a3bb73d45a3af0a146b0d846e.tar.gz chromium_src-cf4b8e3ace0b430a3bb73d45a3af0a146b0d846e.tar.bz2 |
Clear email when OAuth2 token is revoked.
BUG=90605
TEST=Manual
Review URL: http://codereview.chromium.org/7477037
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94225 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | remoting/webapp/me2mom/remoting.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/remoting/webapp/me2mom/remoting.js b/remoting/webapp/me2mom/remoting.js index 695bb84..b220502 100644 --- a/remoting/webapp/me2mom/remoting.js +++ b/remoting/webapp/me2mom/remoting.js @@ -101,9 +101,7 @@ function updateAuthStatus_() { document.getElementById('oauth2-clear-button').hidden = !oauthValid; var loginName = getEmail(); - if (loginName) { - document.getElementById('current-email').innerText = loginName; - } + document.getElementById('current-email').innerText = loginName || ''; var disableControls = !(loginName && oauthValid); var controlPanel = document.getElementById('control-panel'); @@ -141,6 +139,7 @@ function exchangedCodeForToken_() { remoting.clearOAuth2 = function() { remoting.oauth2.clear(); + window.localStorage.removeItem(KEY_EMAIL_); updateAuthStatus_(); } |