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

Issue 1822043004: Do not close network controller in ProfileExtender if it was not opened there. (Closed)

Created:
4 years, 9 months ago by gurrrik
Modified:
4 years, 8 months ago
CC:
chromium-reviews, telemetry-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Do not close network controller in ProfileExtender if it was not opened there. If we have a benchmark that requires running a profile extender (for example, it has a BlankPageWithExtensionProfile page), the network_controller will be closed when the profile extender calls TearDownBrowser(). And when later this benchmark starts running stories, it will attempt to call StartReplay method of network_controller, which will fail, because the network_controller is already closed. This CL fixes this behaviour by not closing network_controller inside the profile extender if it was not opened in that profile extender. The review https://codereview.chromium.org/1822083003/ adds is_open property to NetworkController class. After it lands, I'll update this CL so that it no longer requires protected member access. BUG=597923 Committed: https://crrev.com/636566857c10b4a4039de0656e5a289f6b775a04 Cr-Commit-Position: refs/heads/master@{#383487}

Patch Set 1 #

Patch Set 2 : New catapult revision #

Patch Set 3 : Rebase changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -3 lines) Patch
M tools/perf/profile_creators/profile_extender.py View 1 3 chunks +10 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (7 generated)
aiolos (Not reviewing)
Could you also file a bug and update the cl description with it?
4 years, 9 months ago (2016-03-24 00:25:24 UTC) #3
gurrrik
On 2016/03/24 00:25:24, aiolos wrote: > Could you also file a bug and update the ...
4 years, 9 months ago (2016-03-25 09:23:58 UTC) #5
gurrrik
The CL for catapult was committed, so I updated this CL to remove protected member ...
4 years, 9 months ago (2016-03-25 10:01:25 UTC) #6
aiolos (Not reviewing)
Catapult should autoroll into chromium, so no need to change the deps. (You may accidentally ...
4 years, 9 months ago (2016-03-25 18:38:14 UTC) #7
gurrrik
On 2016/03/25 18:38:14, aiolos wrote: > Catapult should autoroll into chromium, so no need to ...
4 years, 8 months ago (2016-03-28 09:03:43 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1822043004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1822043004/40001
4 years, 8 months ago (2016-03-28 09:04:21 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-03-28 10:25:43 UTC) #13
commit-bot: I haz the power
4 years, 8 months ago (2016-03-28 10:27:36 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/636566857c10b4a4039de0656e5a289f6b775a04
Cr-Commit-Position: refs/heads/master@{#383487}

Powered by Google App Engine
This is Rietveld 408576698