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

Unified Diff: ui/views/mus/mus_client.cc

Issue 2596903002: discardable shared memory: Allow resetting the allocator instance. (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
« no previous file with comments | « base/memory/discardable_memory_allocator.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/mus_client.cc
diff --git a/ui/views/mus/mus_client.cc b/ui/views/mus/mus_client.cc
index 575cf995b8154b842e0513fe5c0337ca123d2d7a..e01e1ff87cdbf6a735df56c913ac8c4916151478 100644
--- a/ui/views/mus/mus_client.cc
+++ b/ui/views/mus/mus_client.cc
@@ -128,6 +128,7 @@ MusClient::~MusClient() {
ViewsDelegate::NativeWidgetFactory());
}
+ base::DiscardableMemoryAllocator::SetInstance(nullptr);
DCHECK_EQ(instance_, this);
instance_ = nullptr;
}
« no previous file with comments | « base/memory/discardable_memory_allocator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698