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

Unified Diff: base/memory/shared_memory_tracker.h

Issue 2873433004: Replace SharedMemory::UniqueID usages with SharedMemoryHandle's guid (Closed)
Patch Set: Fix browser tests error Created 3 years, 7 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: base/memory/shared_memory_tracker.h
diff --git a/base/memory/shared_memory_tracker.h b/base/memory/shared_memory_tracker.h
index 039e48d515fafc1fe2b49bcee9f743d485de3454..038eb925d04c6a2b50e4d06d0061f33a75f7ef27 100644
--- a/base/memory/shared_memory_tracker.h
+++ b/base/memory/shared_memory_tracker.h
@@ -31,14 +31,6 @@ class BASE_EXPORT SharedMemoryTracker
void DecrementMemoryUsage(const SharedMemory& shared_memory);
private:
- struct Usage {
- Usage();
- Usage(const Usage& rhs);
- ~Usage();
- SharedMemory::UniqueId unique_id;
- size_t size;
- };
-
SharedMemoryTracker();
~SharedMemoryTracker() override;
@@ -48,7 +40,7 @@ class BASE_EXPORT SharedMemoryTracker
// Used to lock when |usages_| is modified or read.
Lock usages_lock_;
- std::unordered_map<const SharedMemory*, Usage> usages_;
+ std::unordered_map<const SharedMemory*, std::size_t> usages_;
danakj 2017/05/09 14:54:18 just size_t, no std::
hajimehoshi 2017/05/10 05:55:22 Done.
DISALLOW_COPY_AND_ASSIGN(SharedMemoryTracker);
};

Powered by Google App Engine
This is Rietveld 408576698