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

Unified Diff: chrome/browser/resources/gaia_auth/main.js

Issue 1179433002: signin: Abort previous 'channelConnected' handling on retry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 5 years, 6 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/gaia_auth/main.js
diff --git a/chrome/browser/resources/gaia_auth/main.js b/chrome/browser/resources/gaia_auth/main.js
index e00869c9f52846661b26c448b50609244dade47d..1a59e0875b9439cb2b793bac11136d7094570428 100644
--- a/chrome/browser/resources/gaia_auth/main.js
+++ b/chrome/browser/resources/gaia_auth/main.js
@@ -224,6 +224,9 @@ Authenticator.prototype = {
window.setTimeout(function() {
if (!this.supportChannel_) {
+ // Give up previous channel and bind its 'channelConnected' to a no-op.
+ supportChannel.registerMessage('channelConnected', function() {});
+
// Re-initialize the channel if it is not connected properly, e.g.
// connect may be called before background script started running.
this.initSupportChannel_();
« no previous file with comments | « chrome/browser/resources/gaia_auth/channel.js ('k') | chrome/browser/resources/gaia_auth_host/post_message_channel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698