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

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

Issue 1179433002: signin: Abort previous 'channelConnected' handling on retry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix wrong member var decl 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/background.js
diff --git a/chrome/browser/resources/gaia_auth/background.js b/chrome/browser/resources/gaia_auth/background.js
index 3b529f33463c21d3d85f8d7cd96b3431e777982d..48230439ab616ccdb932f0645d479eaecbf42608 100644
--- a/chrome/browser/resources/gaia_auth/background.js
+++ b/chrome/browser/resources/gaia_auth/background.js
@@ -28,14 +28,13 @@
* the associated tab id.
*/
function BackgroundBridgeManager() {
+ // Maps a tab id to its associated BackgroundBridge.
+ this.bridges_ = {};
}
BackgroundBridgeManager.prototype = {
CONTINUE_URL_BASE: 'chrome-extension://mfffpogegjflfpflabcdkioaeobkgjik' +
'/success.html',
- // Maps a tab id to its associated BackgroundBridge.
- bridges_: {},
dzhioev (left Google) 2015/06/10 20:04:18 Can you replace this with 'bridges_: null' instead
xiyuan 2015/06/10 20:21:12 It is not deleted. It is moved to BackgroundBridge
dzhioev (left Google) 2015/06/10 21:20:46 I understand this. That's a matter of opinion, but
xiyuan 2015/06/10 21:32:45 I see what you mean now. Done here and other place
-
run: function() {
chrome.runtime.onConnect.addListener(this.onConnect_.bind(this));
@@ -103,6 +102,7 @@ BackgroundBridgeManager.prototype = {
*/
function BackgroundBridge(tabId) {
this.tabId_ = tabId;
+ this.passwordStore_ = {};
}
BackgroundBridge.prototype = {
@@ -148,8 +148,6 @@ BackgroundBridge.prototype = {
// Whether SAML flow is going.
isSAML_: false,
- passwordStore_: {},
dzhioev (left Google) 2015/06/10 20:04:18 ditto
xiyuan 2015/06/10 20:21:12 Same here. It is moved to BackgroundBridge constru
-
channelMain_: null,
channelInjected_: null,
« no previous file with comments | « no previous file | chrome/browser/resources/gaia_auth/channel.js » ('j') | chrome/browser/resources/gaia_auth/channel.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698