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

Unified Diff: third_party/WebKit/Source/platform/web_process_memory_dump.h

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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: third_party/WebKit/Source/platform/web_process_memory_dump.h
diff --git a/third_party/WebKit/Source/platform/web_process_memory_dump.h b/third_party/WebKit/Source/platform/web_process_memory_dump.h
index ed7310fd17575b08315b7b85cb236dfcc14ef69a..5fb92cda831663fdd1f243ae0333b9dc871ae399 100644
--- a/third_party/WebKit/Source/platform/web_process_memory_dump.h
+++ b/third_party/WebKit/Source/platform/web_process_memory_dump.h
@@ -12,7 +12,9 @@
#include "platform/PlatformExport.h"
#include "platform/web_memory_allocator_dump.h"
#include "wtf/HashMap.h"
+#include "wtf/OwnPtr.h"
#include "wtf/text/WTFString.h"
+
#include <map>
#include <memory>
#include <vector>
@@ -156,7 +158,7 @@ class PLATFORM_EXPORT WebProcessMemoryDump final {
// Those pointers are valid only within the scope of the call and can be
// safely torn down once the WebProcessMemoryDump itself is destroyed.
HashMap<base::trace_event::MemoryAllocatorDump*,
- std::unique_ptr<WebMemoryAllocatorDump>> memory_allocator_dumps_;
+ OwnPtr<WebMemoryAllocatorDump>> memory_allocator_dumps_;
// Stores SkTraceMemoryDump for the current ProcessMemoryDump.
std::vector<std::unique_ptr<skia::SkiaTraceMemoryDumpImpl>> sk_trace_dump_list_;

Powered by Google App Engine
This is Rietveld 408576698