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

Unified Diff: chrome/browser/network_time/network_time_service.h

Issue 291333009: network_time: Remove NetworkTimeService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tests Created 6 years, 7 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
« no previous file with comments | « chrome/browser/browser_process_impl.cc ('k') | chrome/browser/network_time/network_time_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/network_time/network_time_service.h
diff --git a/chrome/browser/network_time/network_time_service.h b/chrome/browser/network_time/network_time_service.h
deleted file mode 100644
index b6ea13bd5ce9cbd10006b66d5e57e7617a60d183..0000000000000000000000000000000000000000
--- a/chrome/browser/network_time/network_time_service.h
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright 2013 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 CHROME_BROWSER_NETWORK_TIME_NETWORK_TIME_SERVICE_H_
-#define CHROME_BROWSER_NETWORK_TIME_NETWORK_TIME_SERVICE_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "base/time/time.h"
-#include "components/keyed_service/core/keyed_service.h"
-
-class Profile;
-
-namespace user_prefs {
-class PrefRegistrySyncable;
-}
-
-// NetworkTimeService can convert local time to network time.
-class NetworkTimeService : public KeyedService {
- public:
- explicit NetworkTimeService(Profile* profile);
- virtual ~NetworkTimeService();
-
- static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
-
- // Return network time corresponding to |local_time| if possible. Return
- // |local_time| otherwise.
- base::Time GetNetworkTime(const base::Time& local_time);
-
- // Shortcut to get current time.
- base::Time GetNetworkNow();
-
- virtual void Shutdown() OVERRIDE;
-
- private:
- Profile* profile_;
-};
-
-#endif // CHROME_BROWSER_NETWORK_TIME_NETWORK_TIME_SERVICE_H_
« no previous file with comments | « chrome/browser/browser_process_impl.cc ('k') | chrome/browser/network_time/network_time_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698