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

Issue 2963193004: PlatformAppBrowserTest::SetUp should call at the end of AppShimInteractiveTest::SetUp() (Closed)

Created:
3 years, 5 months ago by chaopeng
Modified:
3 years, 5 months ago
Reviewers:
Lei Zhang, Ilya Sherman
CC:
chromium-reviews, tapted, Matt Giuca, mac-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

PlatformAppBrowserTest::SetUp should call at the end of AppShimInteractiveTest::SetUp() AppShimInteractiveTest initializes a ScopedFeatureList in its SetUp() method after PlatformAppBrowserTest::SetUp. But testcases run in: PlatformAppBrowserTest -> ExtensionApiTest -> ExtensionBrowserTest -> InProcessBrowserTest -> BrowserTestBase::SetUp[1] BrowserTestBase::SetUp calls ContentMain() to launch the browser and run testcase and the browser destroys its FieldTrialList and FeatureList on shutdown. Stack trace: base::FieldTrialList::~FieldTrialList() ChromeBrowserMainParts::~ChromeBrowserMainParts() ChromeBrowserMainPartsMac::~ChromeBrowserMainPartsMac() content::BrowserMainLoop::~BrowserMainLoop() content::BrowserMainLoop::~BrowserMainLoop() content::BrowserMainRunnerImpl::Shutdown() content::BrowserMain(content::MainFunctionParams const&) content::RunNamedProcessTypeMain(std::__1::basic_string<char, content::MainFunctionParams const&, content::ContentMainDelegate*) content::ContentMainRunnerImpl::Run() service_manager::Main(service_manager::MainParams const&) content::ContentMain(content::ContentMainParams const&) content::BrowserTestBase::SetUp() InProcessBrowserTest::SetUp() That is why it caused the memory issue. So we should call PlatformAppBrowserTest::SetUp call at the end of AppShimInteractiveTest::SetUp() BUG= Review-Url: https://codereview.chromium.org/2963193004 Cr-Commit-Position: refs/heads/master@{#484416} Committed: https://chromium.googlesource.com/chromium/src/+/9d126b1389be2431d6c95eae379f5f0f059089c6

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M chrome/browser/apps/app_shim/app_shim_interactive_uitest_mac.mm View 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 25 (13 generated)
chaopeng
We got a memory regression from Change ScopedFeatureList to overrides FeatureList not reset. Need this ...
3 years, 5 months ago (2017-07-01 03:49:51 UTC) #2
Ilya Sherman
LGTM
3 years, 5 months ago (2017-07-03 02:27:00 UTC) #3
chaopeng
thestig@chromium.org: Please review changes。 Thank you.
3 years, 5 months ago (2017-07-03 03:24:58 UTC) #5
chaopeng
thestig@chromium.org: Please review changes。 Thank you.
3 years, 5 months ago (2017-07-03 03:25:01 UTC) #6
Lei Zhang
lgtm For the CL description: 1) There's a typo: BroswerTest 2) It's unclear what the ...
3 years, 5 months ago (2017-07-05 18:37:47 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/2963193004/1
3 years, 5 months ago (2017-07-05 21:19:51 UTC) #11
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/2963193004/1
3 years, 5 months ago (2017-07-05 21:21:34 UTC) #14
Lei Zhang
On 2017/07/05 18:37:47, Lei Zhang wrote: > lgtm > > For the CL description: > ...
3 years, 5 months ago (2017-07-05 21:47:32 UTC) #15
chaopeng
On 2017/07/05 21:47:32, Lei Zhang wrote: > On 2017/07/05 18:37:47, Lei Zhang wrote: > > ...
3 years, 5 months ago (2017-07-05 21:58:56 UTC) #17
Lei Zhang
On 2017/07/05 21:58:56, chaopeng wrote: > Yes, the test case is run in ContentMain(*GetContentMainParams()). let ...
3 years, 5 months ago (2017-07-05 22:03:57 UTC) #18
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/2963193004/1
3 years, 5 months ago (2017-07-05 22:45:02 UTC) #22
commit-bot: I haz the power
3 years, 5 months ago (2017-07-06 00:29:10 UTC) #25
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/9d126b1389be2431d6c95eae379f...

Powered by Google App Engine
This is Rietveld 408576698