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

Side by Side Diff: third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp

Issue 2279563003: Remove a graceful shutdown sequence from TestingPlatformSupport (Closed)
Patch Set: Created 4 years, 3 months 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 261
262 ProcessHeap::init(); 262 ProcessHeap::init();
263 ThreadState::attachMainThread(); 263 ThreadState::attachMainThread();
264 ThreadState::current()->registerTraceDOMWrappers(nullptr, nullptr, nullptr); 264 ThreadState::current()->registerTraceDOMWrappers(nullptr, nullptr, nullptr);
265 EventTracer::initialize(); 265 EventTracer::initialize();
266 HTTPNames::init(); 266 HTTPNames::init();
267 } 267 }
268 268
269 ScopedUnittestsEnvironmentSetup::~ScopedUnittestsEnvironmentSetup() 269 ScopedUnittestsEnvironmentSetup::~ScopedUnittestsEnvironmentSetup()
270 { 270 {
271 blink::ThreadState::detachMainThread();
272 blink::ProcessHeap::shutdown();
273
274 // Destroy test platform objects before shutting down WTF layer.
275 m_testingPlatformSupport.reset();
276 m_compositorSupport.reset();
277
278 WTF::shutdown();
279 WTF::Partitions::shutdown();
280
281 // Now - implicitly destroy m_platform and m_discardableMemoryAllocator.
282 } 271 }
283 272
284 } // namespace blink 273 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698