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

Issue 863863003: base.EventHook (Closed)

Created:
5 years, 10 months ago by kelvinp
Modified:
5 years, 10 months ago
Reviewers:
garykac, Jamie
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

base.EventHook Currently most objects in the Chromoting Webapp doesn't unhook events until the page is unloaded. This introduces unintentional coupling between an object's lifetime and the app's lifetime. This CL implements a lightweight utility class to make unhooking listeners easier. BUG=454552 Committed: https://crrev.com/c67ab01d1b437f04de1441160ba013bb37ceffc2 Cr-Commit-Position: refs/heads/master@{#314278}

Patch Set 1 : #

Total comments: 5

Patch Set 2 : Reviewer's feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -4 lines) Patch
M remoting/remoting_webapp_files.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M remoting/webapp/base/js/base.js View 1 6 chunks +106 lines, -4 lines 0 comments Download
A remoting/webapp/unittests/event_hook_unittest.js View 1 1 chunk +68 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (9 generated)
kelvinp
PTAL https://codereview.chromium.org/863863003/diff/40001/remoting/webapp/base/js/base.js File remoting/webapp/base/js/base.js (right): https://codereview.chromium.org/863863003/diff/40001/remoting/webapp/base/js/base.js#newcode477 remoting/webapp/base/js/base.js:477: * @param {Function} listener Function is the JavaScript ...
5 years, 10 months ago (2015-02-02 23:08:34 UTC) #5
Jamie
LGTM with nits. https://codereview.chromium.org/863863003/diff/40001/remoting/webapp/base/js/base.js File remoting/webapp/base/js/base.js (right): https://codereview.chromium.org/863863003/diff/40001/remoting/webapp/base/js/base.js#newcode455 remoting/webapp/base/js/base.js:455: * An light weight object that ...
5 years, 10 months ago (2015-02-02 23:46:20 UTC) #7
kelvinp
FYI https://codereview.chromium.org/863863003/diff/40001/remoting/webapp/base/js/base.js File remoting/webapp/base/js/base.js (right): https://codereview.chromium.org/863863003/diff/40001/remoting/webapp/base/js/base.js#newcode470 remoting/webapp/base/js/base.js:470: * MyConstructor.prototype.dispose = function () { On 2015/02/02 ...
5 years, 10 months ago (2015-02-03 01:42:01 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/863863003/60001
5 years, 10 months ago (2015-02-03 01:42:56 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_rel on tryserver.chromium.win (None)
5 years, 10 months ago (2015-02-03 03:44:18 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/863863003/60001
5 years, 10 months ago (2015-02-03 05:37:42 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:60001)
5 years, 10 months ago (2015-02-03 06:14:52 UTC) #16
commit-bot: I haz the power
5 years, 10 months ago (2015-02-03 06:15:46 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/c67ab01d1b437f04de1441160ba013bb37ceffc2
Cr-Commit-Position: refs/heads/master@{#314278}

Powered by Google App Engine
This is Rietveld 408576698