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

Side by Side Diff: content/child/web_memory_dump_provider_adapter.cc

Issue 1706163002: Refactoring: Remove an argument 'enabled' from onHeapProfilingEnabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/child/web_memory_dump_provider_adapter.h" 5 #include "content/child/web_memory_dump_provider_adapter.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/trace_event/trace_event_argument.h" 9 #include "base/trace_event/trace_event_argument.h"
10 #include "content/child/web_process_memory_dump_impl.h" 10 #include "content/child/web_process_memory_dump_impl.h"
(...skipping 22 matching lines...) Expand all
33 level = blink::WebMemoryDumpLevelOfDetail::Detailed; 33 level = blink::WebMemoryDumpLevelOfDetail::Detailed;
34 break; 34 break;
35 default: 35 default:
36 NOTREACHED(); 36 NOTREACHED();
37 return false; 37 return false;
38 } 38 }
39 WebProcessMemoryDumpImpl web_pmd_impl(args.level_of_detail, pmd); 39 WebProcessMemoryDumpImpl web_pmd_impl(args.level_of_detail, pmd);
40 return web_memory_dump_provider_->onMemoryDump(level, &web_pmd_impl); 40 return web_memory_dump_provider_->onMemoryDump(level, &web_pmd_impl);
41 } 41 }
42 42
43 void WebMemoryDumpProviderAdapter::OnHeapProfilingEnabled(bool enabled) { 43 void WebMemoryDumpProviderAdapter::OnHeapProfilingEnabled() {
44 if (!web_memory_dump_provider_->supportsHeapProfiling()) 44 if (!web_memory_dump_provider_->supportsHeapProfiling())
45 return; 45 return;
46 web_memory_dump_provider_->onHeapProfilingEnabled(enabled); 46 web_memory_dump_provider_->onHeapProfilingEnabled();
47 } 47 }
48 48
49 } // namespace content 49 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698