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

Unified Diff: base/trace_event/estimate_memory_usage.h

Issue 2451583002: Add MDP for TabRestorer.
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | components/sessions/core/persistent_tab_restore_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/trace_event/estimate_memory_usage.h
diff --git a/base/trace_event/estimate_memory_usage.h b/base/trace_event/estimate_memory_usage.h
index 0605e4e611ef364bee0bcce5c744db23d09bf5d1..8698853dc2f320384012f95c1c8d493b3cfdae38 100644
--- a/base/trace_event/estimate_memory_usage.h
+++ b/base/trace_event/estimate_memory_usage.h
@@ -247,8 +247,8 @@ size_t EstimateMemoryUsage(const std::basic_string<C, T, A>& string) {
int refcount;
};
// There is one shared empty string, which we estimate to 0.
- static const char* empty_cstr = nullptr;
- if (!empty_cstr) empty_cstr = std::string().c_str();
+ static const value_type* empty_cstr = nullptr;
+ if (!empty_cstr) empty_cstr = string_type().c_str();
return (string.c_str() == empty_cstr) ?
0 :
sizeof(Header) + (string.capacity() + 1) * sizeof(value_type);
« no previous file with comments | « no previous file | components/sessions/core/persistent_tab_restore_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698