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

Unified Diff: chrome/browser/resources/gaia_auth/channel.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
« no previous file with comments | « chrome/browser/resources/gaia_auth/background.js ('k') | chrome/browser/resources/gaia_auth/main.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/gaia_auth/channel.js
diff --git a/chrome/browser/resources/gaia_auth/channel.js b/chrome/browser/resources/gaia_auth/channel.js
index 52094b9d925f62c141036f2ac53c37b04cdba371..2f6ce2101e623b7ab8cf19e1d121017ca055535d 100644
--- a/chrome/browser/resources/gaia_auth/channel.js
+++ b/chrome/browser/resources/gaia_auth/channel.js
@@ -6,6 +6,8 @@
* Channel to the background script.
*/
function Channel() {
+ this.messageCallbacks_ = {};
+ this.internalRequestCallbacks_ = {};
}
/** @const */
@@ -19,13 +21,13 @@ Channel.prototype = {
port_: null,
// Registered message callbacks.
- messageCallbacks_: {},
+ messageCallbacks_: null,
// Internal request id to track pending requests.
nextInternalRequestId_: 0,
// Pending internal request callbacks.
- internalRequestCallbacks_: {},
+ internalRequestCallbacks_: null,
/**
* Initialize the channel with given port for the background script.
« no previous file with comments | « chrome/browser/resources/gaia_auth/background.js ('k') | chrome/browser/resources/gaia_auth/main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698