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

Issue 2838223002: Fix ProcessManagerTest.* flakiness. (Closed)

Created:
3 years, 8 months ago by lazyboy
Modified:
3 years, 8 months ago
Reviewers:
Devlin
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix ProcessManagerTest.* flakiness. Remove ProcessManager as DevToolsAgentHost observer during the manager's destruction. In ProcessManagerTest-s, we create multiple ProcessManager-s and add as DevToolsAgentHost observer. If two process managers were created at the same address, then DevToolsAgentHost will think that we are adding the same ProcessManager as observer twice. Remove ProcessManager as DevToolsAgentHost observer during the manager's destruction to avoid that. Also that is the right thing to do to avoid potential UAF of ProcessManager from DevToolsAgentHost. BUG=712429 Test=Running ./out/Release/extensions_unittests --gtest_filter=ProcessManagerTest.* should pass without any retry. Review-Url: https://codereview.chromium.org/2838223002 Cr-Commit-Position: refs/heads/master@{#467104} Committed: https://chromium.googlesource.com/chromium/src/+/f70b2eb9fb89130c5d8c9bdc91fc98b7e07964ad

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M extensions/browser/process_manager.cc View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 13 (9 generated)
lazyboy
3 years, 8 months ago (2017-04-25 17:08:39 UTC) #4
Devlin
lgtm; good find!
3 years, 8 months ago (2017-04-25 20:25:36 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2838223002/1
3 years, 8 months ago (2017-04-25 20:37:13 UTC) #9
commit-bot: I haz the power
3 years, 8 months ago (2017-04-25 20:43:13 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/f70b2eb9fb89130c5d8c9bdc91fc...

Powered by Google App Engine
This is Rietveld 408576698