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

Unified Diff: components/html_viewer/html_widget.cc

Issue 1425263003: Use TimeTicks as much as possible in startup_metric_utils. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ifdef thread priority dance out on Mac per lack of support in base Created 5 years, 1 month 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: components/html_viewer/html_widget.cc
diff --git a/components/html_viewer/html_widget.cc b/components/html_viewer/html_widget.cc
index 28f9f1b162fc416c63f3b80e2786973a0a56fe20..5a60d3e6e2622e68724d95975c770da4feb50e8e 100644
--- a/components/html_viewer/html_widget.cc
+++ b/components/html_viewer/html_widget.cc
@@ -126,11 +126,11 @@ void HTMLWidgetRootLocal::didMeaningfulLayout(
blink::WebMeaningfulLayout layout_type) {
static bool called = false;
if (!called && layout_type == blink::WebMeaningfulLayout::VisuallyNonEmpty) {
- const int64 time = base::Time::Now().ToInternalValue();
+ const int64 ticks = base::TimeTicks::Now().ToInternalValue();
tracing::StartupPerformanceDataCollectorPtr collector =
StatsCollectionController::ConnectToDataCollector(app_);
if (collector)
- collector->SetFirstVisuallyNonEmptyLayoutTime(time);
+ collector->SetFirstVisuallyNonEmptyLayoutTicks(ticks);
called = true;
}
}

Powered by Google App Engine
This is Rietveld 408576698