Chromium Code Reviews
DescriptionFix resource leak on extension window closing.
The ARC support extension should be unloaded on window
closed. However, it is not, because the port connected to
Chrome is kept. In such a case, background page is kept alive
so that the extension will not be unloaded.
This CL closes the port so that extension is unloaded.
Also, the "close" related messaging across ArcAuthService,
ArcSupportHost and extension's background.js is slightly
cleaned up to remove the unnecessary/unused code.
It could be as a preparation of fixing dependencies, too.
BUG=b/31079732, 651838
TEST=Ran on device. Ran unittests.
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Committed: https://crrev.com/824e668590c607e39ee4d8620de32016a920f2c2
Cr-Commit-Position: refs/heads/master@{#422196}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Address comments. #
Messages
Total messages: 20 (11 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||