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

Unified Diff: chrome/browser/metrics/leak_detector/leak_detector_controller_unittest.cc

Issue 2549623006: Fix TestBrowserThread destruction order in CrOS tests. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/metrics/leak_detector/leak_detector_controller_unittest.cc
diff --git a/chrome/browser/metrics/leak_detector/leak_detector_controller_unittest.cc b/chrome/browser/metrics/leak_detector/leak_detector_controller_unittest.cc
index a77369a9881c1155687b160e46136fb4817d5a6f..66434cd554b6e85cbd095bc989b4097e0cae68b5 100644
--- a/chrome/browser/metrics/leak_detector/leak_detector_controller_unittest.cc
+++ b/chrome/browser/metrics/leak_detector/leak_detector_controller_unittest.cc
@@ -59,7 +59,7 @@ class LeakDetectorControllerTest : public ::testing::Test {
// LeakDetector.
//
// See src/components/metrics/leak_detector/leak_detector.h for more info.
-base::LazyInstance<TestLeakDetectorController> g_instance =
+base::LazyInstance<TestLeakDetectorController>::Leaky g_instance =
gab 2016/12/02 19:23:51 Needs to be leaky or its destructor runs after the
oshima 2016/12/02 20:18:12 can you update the comment above?
gab 2016/12/03 03:02:27 Done.
LAZY_INSTANCE_INITIALIZER;
TEST_F(LeakDetectorControllerTest, SingleReport) {

Powered by Google App Engine
This is Rietveld 408576698