| Index: components/history/core/android/android_time.h
|
| diff --git a/components/history/core/android/android_time.h b/components/history/core/android/android_time.h
|
| deleted file mode 100644
|
| index e48f8446c0a65d7deb11636b1e097765f4aa8a90..0000000000000000000000000000000000000000
|
| --- a/components/history/core/android/android_time.h
|
| +++ /dev/null
|
| @@ -1,26 +0,0 @@
|
| -// Copyright (c) 2012 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.
|
| -
|
| -#ifndef COMPONENTS_HISTORY_CORE_ANDROID_ANDROID_TIME_H_
|
| -#define COMPONENTS_HISTORY_CORE_ANDROID_ANDROID_TIME_H_
|
| -
|
| -#include "base/time/time.h"
|
| -
|
| -namespace history {
|
| -
|
| -// Android's system time is the milliseconds since January 1, 1970 00:00:00 UTC,
|
| -// the below 2 methods are used convert between base::Time and the milliseconds
|
| -// stored in database.
|
| -inline base::Time FromDatabaseTime(int64 milliseconds) {
|
| - return base::TimeDelta::FromMilliseconds(milliseconds) +
|
| - base::Time::UnixEpoch();
|
| -}
|
| -
|
| -inline int64 ToDatabaseTime(const base::Time& time) {
|
| - return (time - base::Time::UnixEpoch()).InMilliseconds();
|
| -}
|
| -
|
| -} // namespace history
|
| -
|
| -#endif // COMPONENTS_HISTORY_CORE_ANDROID_ANDROID_TIME_H_
|
|
|