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

Issue 2523093002: TestBrowserThreads must outlive TestProfiles and TestProfileManagers (Closed)

Created:
4 years ago by gab
Modified:
4 years ago
Reviewers:
sky
CC:
chromium-reviews, asanka, gavinp+prer_chromium.org, cbentzel+watch_chromium.org, tburkard+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

TestBrowserThreads must outlive TestProfiles and TestProfileManagers Otherwise they trigger an unhappy DCHECK that verifies that profiles are destroyed on the UI thread. This is a pre-requirement for https://codereview.chromium.org/2464233002 which will reset global BrowserThread state in ~BrowserThreadImpl() The incorrect destruction order previously "worked" because BrowserThread globals weren't cleaned up in between tests... BUG=653916 Committed: https://crrev.com/57d179c25000b2764d97096a7bfa910e9ffba89a Cr-Commit-Position: refs/heads/master@{#434061}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -11 lines) Patch
M chrome/browser/download/download_request_limiter_unittest.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/prerender/prerender_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_info_cache_unittest.h View 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_list_desktop_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profile_statistics_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sessions/session_restore_stats_collector_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/sessions/tab_loader_unittest.cc View 3 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/signin/chrome_signin_client_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 13 (8 generated)
gab
@sky PTAL, thanks
4 years ago (2016-11-22 22:47:40 UTC) #2
sky
LGTM
4 years ago (2016-11-22 23:34:50 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/2523093002/1
4 years ago (2016-11-22 23:46:02 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-11-23 01:13:33 UTC) #11
commit-bot: I haz the power
4 years ago (2016-11-23 01:17:35 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/57d179c25000b2764d97096a7bfa910e9ffba89a
Cr-Commit-Position: refs/heads/master@{#434061}

Powered by Google App Engine
This is Rietveld 408576698