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

Unified Diff: components/startup_metric_utils/browser/startup_metric_host_impl.cc

Issue 2022413002: Convert startup_metric_utils to use mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@message-mojom-magic
Patch Set: only create the target startup_metric_utils_win on windows Created 4 years, 6 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: components/startup_metric_utils/browser/startup_metric_host_impl.cc
diff --git a/components/startup_metric_utils/browser/startup_metric_host_impl.cc b/components/startup_metric_utils/browser/startup_metric_host_impl.cc
new file mode 100644
index 0000000000000000000000000000000000000000..055fec803545bfd8dda09c75d814111890598ad3
--- /dev/null
+++ b/components/startup_metric_utils/browser/startup_metric_host_impl.cc
@@ -0,0 +1,26 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/startup_metric_utils/browser/startup_metric_host_impl.h"
+
+#include "components/startup_metric_utils/browser/startup_metric_utils.h"
+
+namespace startup_metric_utils {
+// static
+void StartupMetricHostImpl::Create(mojom::StartupMetricHostRequest request) {
+ new StartupMetricHostImpl(std::move(request));
+}
+
+StartupMetricHostImpl::StartupMetricHostImpl(
+ mojom::StartupMetricHostRequest request)
+ : binding_(this, std::move(request)) {}
+
+StartupMetricHostImpl::~StartupMetricHostImpl() = default;
+
+void StartupMetricHostImpl::RecordRendererMainEntryTime(
+ const base::TimeTicks& renderer_main_entry_time) {
+ startup_metric_utils::RecordRendererMainEntryTime(renderer_main_entry_time);
+}
+
+} // namespace startup_metric_utils

Powered by Google App Engine
This is Rietveld 408576698