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

Unified Diff: chrome/browser/ui/webui/profiler_ui.cc

Issue 1021053003: Delivering the FIRST_NONEMPTY_PAINT phase changing event to base/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@phase_splitting
Patch Set: More comments. Created 5 years, 8 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
Index: chrome/browser/ui/webui/profiler_ui.cc
diff --git a/chrome/browser/ui/webui/profiler_ui.cc b/chrome/browser/ui/webui/profiler_ui.cc
index a16c05f1e08aa201d5978c023dc86a058a555592..9b9cd1e37e9600bc7ca82db2ab98f36183b5681f 100644
--- a/chrome/browser/ui/webui/profiler_ui.cc
+++ b/chrome/browser/ui/webui/profiler_ui.cc
@@ -163,17 +163,14 @@ void ProfilerUI::GetData() {
}
void ProfilerUI::ReceivedProfilerData(
+ const metrics::ProfilerDataAttributes& attributes,
const tracked_objects::ProcessDataPhaseSnapshot& process_data_phase,
- base::ProcessId process_id,
- content::ProcessType process_type,
- int profiling_phase,
- base::TimeDelta phase_start,
- base::TimeDelta phase_finish,
const metrics::ProfilerEvents& past_events) {
// Serialize the data to JSON.
base::DictionaryValue json_data;
task_profiler::TaskProfilerDataSerializer::ToValue(
- process_data_phase, process_id, process_type, &json_data);
+ process_data_phase, attributes.process_id, attributes.process_type,
+ &json_data);
// Send the data to the renderer.
web_ui()->CallJavascriptFunction("g_browserBridge.receivedData", json_data);

Powered by Google App Engine
This is Rietveld 408576698