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

Unified Diff: chrome/browser/metrics/chrome_metrics_service_client.h

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/metrics/chrome_metrics_service_client.h
diff --git a/chrome/browser/metrics/chrome_metrics_service_client.h b/chrome/browser/metrics/chrome_metrics_service_client.h
index 7456d1dc15065b07d4d2322ff0671c26a8eeb1fc..81238232efeb920d4db164372ff7685fc4aebdb6 100644
--- a/chrome/browser/metrics/chrome_metrics_service_client.h
+++ b/chrome/browser/metrics/chrome_metrics_service_client.h
@@ -97,12 +97,8 @@ class ChromeMetricsServiceClient
// TrackingSynchronizerObserver:
void 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_profiler_events) override;
void FinishedReceivingProfilerData() override;
@@ -185,6 +181,9 @@ class ChromeMetricsServiceClient
// used.
base::Callback<void(bool*)> cellular_callback_;
+ // Time of this object's creation.
+ const base::TimeTicks start_time_;
+
base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient);

Powered by Google App Engine
This is Rietveld 408576698