 Chromium Code Reviews
 Chromium Code Reviews Issue 2067543003:
  [tracing] Replace %p with %PRIXPTR in the memory dump names  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master
    
  
    Issue 2067543003:
  [tracing] Replace %p with %PRIXPTR in the memory dump names  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master| Index: content/browser/dom_storage/dom_storage_area.cc | 
| diff --git a/content/browser/dom_storage/dom_storage_area.cc b/content/browser/dom_storage/dom_storage_area.cc | 
| index 7bb96f34564f1d9b7225d4b4b4e7bb237f4a631d..81c2be745d637f0256e1140804ba3ec1cdb77dc7 100644 | 
| --- a/content/browser/dom_storage/dom_storage_area.cc | 
| +++ b/content/browser/dom_storage/dom_storage_area.cc | 
| @@ -4,6 +4,8 @@ | 
| #include "content/browser/dom_storage/dom_storage_area.h" | 
| +#include <inttypes.h> | 
| + | 
| #include <algorithm> | 
| #include <cctype> // for std::isalnum | 
| @@ -347,7 +349,9 @@ void DOMStorageArea::OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd) { | 
| if (!std::isalnum(url[index])) | 
| url[index] = '_'; | 
| } | 
| - std::string name = StringPrintf("dom_storage/%s/%p", url.c_str(), this); | 
| + std::string name = | 
| + base::StringPrintf("dom_storage/%s/0x%" PRIXPTR, url.c_str(), | 
| 
Primiano Tucci (use gerrit)
2016/06/14 08:33:51
uh, how is this working today without base? cannot
 
ssid
2016/06/14 20:28:15
So, we figured that C++ adds the namespaces of the
 | 
| + reinterpret_cast<uintptr_t>(this)); | 
| const char* system_allocator_name = | 
| base::trace_event::MemoryDumpManager::GetInstance() |