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

Unified Diff: remoting/webapp/base/js/connection_stats.js

Issue 1143453007: remoting.WindowShape clean up. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reviewer's feedback Created 5 years, 7 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/app_remoting/js/idle_detector.js ('k') | remoting/webapp/base/js/window_shape.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/base/js/connection_stats.js
diff --git a/remoting/webapp/base/js/connection_stats.js b/remoting/webapp/base/js/connection_stats.js
index 7ab1652f597d5b66cc8aee21bb4333dccc527d40..d24940cfe9c2a2b33558e30293f4833cea3c8118 100644
--- a/remoting/webapp/base/js/connection_stats.js
+++ b/remoting/webapp/base/js/connection_stats.js
@@ -37,13 +37,14 @@ remoting.ConnectionStats = function(statsElement, plugin) {
that.update(plugin.getPerfStats());
}, 1000, true);
- remoting.windowShape.addCallback(this);
+ remoting.windowShape.registerClientUI(this);
};
remoting.ConnectionStats.prototype.dispose = function() {
base.dispose(this.timer_);
this.timer_ = null;
this.plugin_ = null;
+ remoting.windowShape.unregisterClientUI(this);
};
/**
« no previous file with comments | « remoting/webapp/app_remoting/js/idle_detector.js ('k') | remoting/webapp/base/js/window_shape.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698