Commit 75b0eb8e authored by prashhir's avatar prashhir Committed by Commit bot

use base::Time constants in mojo instead of defining locally

BUG=412254

Review URL: https://codereview.chromium.org/614893002

Cr-Commit-Position: refs/heads/master@{#299088}
parent 486051b1
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#include "mojo/apps/js/bindings/monotonic_clock.h" #include "mojo/apps/js/bindings/monotonic_clock.h"
#include "base/time/time.h"
#include "gin/object_template_builder.h" #include "gin/object_template_builder.h"
#include "gin/per_isolate_data.h" #include "gin/per_isolate_data.h"
#include "gin/public/wrapper_info.h" #include "gin/public/wrapper_info.h"
...@@ -17,8 +18,8 @@ namespace { ...@@ -17,8 +18,8 @@ namespace {
gin::WrapperInfo g_wrapper_info = { gin::kEmbedderNativeGin }; gin::WrapperInfo g_wrapper_info = { gin::kEmbedderNativeGin };
double GetMonotonicSeconds() { double GetMonotonicSeconds() {
const double kMicrosecondsPerSecond = 1000000; return static_cast<double>(mojo::GetTimeTicksNow()) /
return static_cast<double>(mojo::GetTimeTicksNow()) / kMicrosecondsPerSecond; base::Time::kMicrosecondsPerSecond;
} }
} // namespace } // namespace
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment