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

Unified Diff: chrome/test/base/chrome_unit_test_suite.cc

Issue 1004043002: Re-land: base: Implement browser process support for discardable memory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address review feedback Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/base/chrome_unit_test_suite.cc
diff --git a/chrome/test/base/chrome_unit_test_suite.cc b/chrome/test/base/chrome_unit_test_suite.cc
index c78d463eed706df8b95261d58c78dc69ac546ed4..2ce04bd0b7c8dcfe442ef7ed07aacdb8bc297e3b 100644
--- a/chrome/test/base/chrome_unit_test_suite.cc
+++ b/chrome/test/base/chrome_unit_test_suite.cc
@@ -110,6 +110,9 @@ void ChromeUnitTestSuite::Initialize() {
// This needs to run after ChromeTestSuite::Initialize which calls content's
// intialization which calls base's which initializes ICU.
InitializeResourceBundle();
+
+ base::DiscardableMemoryShmemAllocator::SetInstance(
sky 2015/03/13 22:54:12 Do you need any cleanup code in Shutdown or the li
reveman 2015/03/13 23:08:21 No, this is a set once at startup kind of thing an
+ &discardable_memory_allocator_);
}
void ChromeUnitTestSuite::Shutdown() {

Powered by Google App Engine
This is Rietveld 408576698