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 1752293002: The command line flag is now set during the test startup. (Closed)

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

Description

The command line flag is now set during the test startup. These two tests replaced the global command line object, which might cause heap-use-after-free of the temporary object at the end of the test. For instance, ChromeExtensionsClient::GetWebstoreUpdateURL() tries to read the command line flags, and does so asynchronously, not in the main thread of the test. The proposed patch eliminates use of the ScopedExperimentalCommandLine at the test scope level, thus minimizing the risk of improper access to memory. BUG= R=finnur@chromium.org Committed: https://crrev.com/6ede907a3a8dfc095039b9fcd56478604bd2ae0a Cr-Commit-Position: refs/heads/master@{#380096}

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -50 lines) Patch
M chrome/browser/extensions/crx_installer_browsertest.cc View 1 7 chunks +22 lines, -44 lines 0 comments Download
A chrome/test/data/extensions/experimental.crx View 1 Binary file 0 comments Download
D chrome/test/data/extensions/experimental/manifest.json View 1 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 31 (12 generated)
Alexander Dunaev
4 years, 9 months ago (2016-03-02 09:15:38 UTC) #1
Finnur
asargent@ is probably more appropriate for this.
4 years, 9 months ago (2016-03-02 11:51:54 UTC) #4
Finnur
Also: Missing BUG= from CL description.
4 years, 9 months ago (2016-03-02 11:52:09 UTC) #5
Alexander Dunaev
On 2016/03/02 11:52:09, Finnur wrote: > Also: Missing BUG= from CL description. I haven't found ...
4 years, 9 months ago (2016-03-02 12:12:08 UTC) #6
Finnur
If there's a use-after-free issue, I presume there's an ASAN both report filed or something, ...
4 years, 9 months ago (2016-03-02 13:13:52 UTC) #7
Finnur
> If there's a use-after-free issue, I presume there's an ASAN both report filed ASAN ...
4 years, 9 months ago (2016-03-02 13:14:13 UTC) #8
asargent_no_longer_on_chrome
Hmm, in looking this over and thinking about it a little, I wonder if ScopedExperimentalCommandLine ...
4 years, 9 months ago (2016-03-02 18:18:10 UTC) #10
Devlin
On 2016/03/02 18:18:10, Antony Sargent wrote: > Hmm, in looking this over and thinking about ...
4 years, 9 months ago (2016-03-02 18:25:35 UTC) #11
asargent_no_longer_on_chrome
Ok, sounds like we're agreed. voodoo@ - do you mind reworking this CL to just ...
4 years, 9 months ago (2016-03-02 18:41:18 UTC) #12
Alexander Dunaev
On 2016/03/02 18:41:18, Antony Sargent wrote: > Ok, sounds like we're agreed. > > voodoo@ ...
4 years, 9 months ago (2016-03-03 05:53:01 UTC) #13
Alexander Dunaev
The patch is updated, the ScopedExperimentalCommandLine is removed. Is there any way to make the ...
4 years, 9 months ago (2016-03-03 08:19:49 UTC) #15
Alexander Dunaev
asargent@, could you please take a look?
4 years, 9 months ago (2016-03-04 08:34:49 UTC) #16
asargent_no_longer_on_chrome
lgtm Regarding your question "Is there any way to make the server notifying the reviewers ...
4 years, 9 months ago (2016-03-04 21:56:17 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1752293002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1752293002/20001
4 years, 9 months ago (2016-03-09 03:55:49 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/35587)
4 years, 9 months ago (2016-03-09 05:51:32 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1752293002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1752293002/20001
4 years, 9 months ago (2016-03-09 06:26:13 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1752293002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1752293002/20001
4 years, 9 months ago (2016-03-09 06:26:38 UTC) #27
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-09 07:48:01 UTC) #29
commit-bot: I haz the power
4 years, 9 months ago (2016-03-09 07:49:00 UTC) #31
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/6ede907a3a8dfc095039b9fcd56478604bd2ae0a
Cr-Commit-Position: refs/heads/master@{#380096}

Powered by Google App Engine
This is Rietveld 408576698