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

Issue 2726983006: Clean up after each MemoryCoordinatorImpl test (Closed)

Created:
3 years, 9 months ago by dimaa1
Modified:
3 years, 9 months ago
CC:
chromium-reviews, jam, darin-cc_chromium.org, gavinp+memory_chromium.org, vmpstr+watch_chromium.org, sadrul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clean up g_memory_coordinator after each MemoryCoordinatorImpl test MemoryCoordinatorImpl tests fail the first time and should be re-run separately. g_memory_coordinator need to be cleaned up between tests, otherwise the subsequent tests will crash trying to reset g_memory_coordinator. This CL implements reset method which called after each MemoryCoordinatorImpl in destructor. BUG=698282 Review-Url: https://codereview.chromium.org/2726983006 Cr-Commit-Position: refs/heads/master@{#454926} Committed: https://chromium.googlesource.com/chromium/src/+/aba30978d6c58a937eb2cf5fbdcde3e2abb7cfaa

Patch Set 1 #

Total comments: 4

Patch Set 2 : Allow SetMemoryCoordinator to nullify #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -2 lines) Patch
M base/memory/memory_coordinator_proxy.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/memory/memory_coordinator_impl.cc View 1 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 21 (8 generated)
sadrul
https://codereview.chromium.org/2726983006/diff/1/content/browser/memory/memory_coordinator_impl.cc File content/browser/memory/memory_coordinator_impl.cc (right): https://codereview.chromium.org/2726983006/diff/1/content/browser/memory/memory_coordinator_impl.cc#newcode180 content/browser/memory/memory_coordinator_impl.cc:180: base::MemoryCoordinatorProxy::ResetGlobals(); Maybe this could just call: base::MemoryCoordinatorProxy::SetMemoryCoordinator(nullptr)? and SetMemoryCoordinator() ...
3 years, 9 months ago (2017-03-03 17:40:41 UTC) #3
dimaa1
https://codereview.chromium.org/2726983006/diff/1/content/browser/memory/memory_coordinator_impl.cc File content/browser/memory/memory_coordinator_impl.cc (right): https://codereview.chromium.org/2726983006/diff/1/content/browser/memory/memory_coordinator_impl.cc#newcode180 content/browser/memory/memory_coordinator_impl.cc:180: base::MemoryCoordinatorProxy::ResetGlobals(); On 2017/03/03 17:40:41, sadrul wrote: > Maybe this ...
3 years, 9 months ago (2017-03-03 18:30:05 UTC) #5
sadrul
https://codereview.chromium.org/2726983006/diff/1/content/browser/memory/memory_coordinator_impl.cc File content/browser/memory/memory_coordinator_impl.cc (right): https://codereview.chromium.org/2726983006/diff/1/content/browser/memory/memory_coordinator_impl.cc#newcode180 content/browser/memory/memory_coordinator_impl.cc:180: base::MemoryCoordinatorProxy::ResetGlobals(); On 2017/03/03 18:30:05, dimaa1 wrote: > On 2017/03/03 ...
3 years, 9 months ago (2017-03-03 18:45:01 UTC) #6
dimaa1
https://codereview.chromium.org/2726983006/diff/1/content/browser/memory/memory_coordinator_impl.cc File content/browser/memory/memory_coordinator_impl.cc (right): https://codereview.chromium.org/2726983006/diff/1/content/browser/memory/memory_coordinator_impl.cc#newcode180 content/browser/memory/memory_coordinator_impl.cc:180: base::MemoryCoordinatorProxy::ResetGlobals(); On 2017/03/03 18:45:01, sadrul wrote: > On 2017/03/03 ...
3 years, 9 months ago (2017-03-03 18:52:03 UTC) #7
sadrul
cool! non-owner lgtm
3 years, 9 months ago (2017-03-03 19:27:32 UTC) #8
hajimehoshi
+bashi
3 years, 9 months ago (2017-03-06 06:24:16 UTC) #10
bashi
lgtm. Thanks for the fix!
3 years, 9 months ago (2017-03-06 06:25:37 UTC) #11
hajimehoshi
non-owner lgtm
3 years, 9 months ago (2017-03-06 06:32:28 UTC) #12
dimaa1
mark@chromium.org: Please review changes in base/memory/memory_coordinator_proxy.cc
3 years, 9 months ago (2017-03-06 16:45:52 UTC) #14
Mark Mentovai
LGTM
3 years, 9 months ago (2017-03-06 18:17:20 UTC) #15
dimaa1
3 years, 9 months ago (2017-03-06 18:49:48 UTC) #16
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/2726983006/20001
3 years, 9 months ago (2017-03-06 18:51:00 UTC) #18
commit-bot: I haz the power
3 years, 9 months ago (2017-03-06 19:57:58 UTC) #21
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/aba30978d6c58a937eb2cf5fbdcd...

Powered by Google App Engine
This is Rietveld 408576698