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

Unified Diff: content/child/web_memory_dump_provider_adapter.cc

Issue 1337943003: [tracing] Non-functional refactor of memory dump arg names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix windows test Created 5 years, 3 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 | « content/browser/tracing/memory_tracing_browsertest.cc ('k') | gin/v8_isolate_memory_dump_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/web_memory_dump_provider_adapter.cc
diff --git a/content/child/web_memory_dump_provider_adapter.cc b/content/child/web_memory_dump_provider_adapter.cc
index 7260803bdf366838c29d59af59ec2c2c9f2307b4..7198ea92340a7b1ca515bfe2ec8c1e8ee7e04b2e 100644
--- a/content/child/web_memory_dump_provider_adapter.cc
+++ b/content/child/web_memory_dump_provider_adapter.cc
@@ -23,11 +23,13 @@ bool WebMemoryDumpProviderAdapter::OnMemoryDump(
base::trace_event::ProcessMemoryDump* pmd) {
blink::WebMemoryDumpLevelOfDetail level;
switch (args.level_of_detail) {
- case base::trace_event::MemoryDumpArgs::LevelOfDetail::LOW:
- level = blink::WebMemoryDumpLevelOfDetail::Low;
+ case base::trace_event::MemoryDumpLevelOfDetail::LIGHT:
+ // TODO(primiano): switch to actual constant once the corresponding
+ // rename lands in blink and rolls.
+ level = static_cast<blink::WebMemoryDumpLevelOfDetail>(0);
break;
- case base::trace_event::MemoryDumpArgs::LevelOfDetail::HIGH:
- level = blink::WebMemoryDumpLevelOfDetail::High;
+ case base::trace_event::MemoryDumpLevelOfDetail::DETAILED:
+ level = static_cast<blink::WebMemoryDumpLevelOfDetail>(1);
break;
default:
NOTREACHED();
« no previous file with comments | « content/browser/tracing/memory_tracing_browsertest.cc ('k') | gin/v8_isolate_memory_dump_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698