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

Unified Diff: tools/memory_watcher/memory_hook.cc

Issue 55833004: Mark memory_watcher as chromium_code. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 1 month 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 | « no previous file | tools/memory_watcher/memory_watcher.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/memory_watcher/memory_hook.cc
===================================================================
--- tools/memory_watcher/memory_hook.cc (revision 232310)
+++ tools/memory_watcher/memory_hook.cc (working copy)
@@ -217,7 +217,7 @@
// block via Perftools_HeapAlloc.
LPVOID rv = Perftools_HeapAlloc(hHeap, dwFlags, dwBytes);
- DCHECK_EQ((HEAP_REALLOC_IN_PLACE_ONLY & dwFlags), 0);
+ DCHECK_EQ((HEAP_REALLOC_IN_PLACE_ONLY & dwFlags), 0u);
// If there was an old buffer, now copy the data to the new buffer.
if (lpMem != 0) {
@@ -266,7 +266,7 @@
CHECK(VirtualQuery(address, &info, sizeof(info)));
if (chunk_size == 0)
chunk_size = info.RegionSize;
- bool decommit = (info.State & MEM_COMMIT);
+ bool decommit = (info.State & MEM_COMMIT) != 0;
if (decommit)
MemoryHook::hook()->OnUntrack(0, reinterpret_cast<int32>(address),
« no previous file with comments | « no previous file | tools/memory_watcher/memory_watcher.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698