| Index: components/scheduler/child/lazy_now.cc
|
| diff --git a/components/scheduler/child/lazy_now.cc b/components/scheduler/child/lazy_now.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..04c57bc16a46ca33e5bf0829ef6a41ac492f32bd
|
| --- /dev/null
|
| +++ b/components/scheduler/child/lazy_now.cc
|
| @@ -0,0 +1,19 @@
|
| +// 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/scheduler/child/lazy_now.h"
|
| +
|
| +#include "components/scheduler/child/task_queue_manager.h"
|
| +
|
| +namespace scheduler {
|
| +namespace internal {
|
| +
|
| +base::TimeTicks LazyNow::Now() {
|
| + if (now_.is_null())
|
| + now_ = task_queue_manager_->Now();
|
| + return now_;
|
| +}
|
| +
|
| +} // namespace internal
|
| +} // namespace scheduler
|
|
|