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

Unified Diff: chrome/browser/network_time/network_time_service_factory.cc

Issue 291333009: network_time: Remove NetworkTimeService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: chrome/browser/network_time/network_time_service_factory.cc
diff --git a/chrome/browser/network_time/network_time_service_factory.cc b/chrome/browser/network_time/network_time_service_factory.cc
deleted file mode 100644
index 258228aedd98b9ac6ded6e8a8131276b9e558f96..0000000000000000000000000000000000000000
--- a/chrome/browser/network_time/network_time_service_factory.cc
+++ /dev/null
@@ -1,40 +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.
-
-#include "chrome/browser/network_time/network_time_service_factory.h"
-
-#include "chrome/browser/network_time/network_time_service.h"
-#include "chrome/browser/profiles/incognito_helpers.h"
-#include "components/keyed_service/content/browser_context_dependency_manager.h"
-
-NetworkTimeServiceFactory::NetworkTimeServiceFactory()
- : BrowserContextKeyedServiceFactory(
- "NetworkTimeService",
- BrowserContextDependencyManager::GetInstance()) {
-}
-
-NetworkTimeServiceFactory::~NetworkTimeServiceFactory() {
-}
-
-// static
-NetworkTimeServiceFactory* NetworkTimeServiceFactory::GetInstance() {
- return Singleton<NetworkTimeServiceFactory>::get();
-}
-
-// static
-NetworkTimeService* NetworkTimeServiceFactory::GetForProfile(
- Profile* profile) {
- return static_cast<NetworkTimeService*>(
- GetInstance()->GetServiceForBrowserContext(profile, true));
-}
-
-content::BrowserContext* NetworkTimeServiceFactory::GetBrowserContextToUse(
- content::BrowserContext* context) const {
- return chrome::GetBrowserContextRedirectedInIncognito(context);
-}
-
-KeyedService* NetworkTimeServiceFactory::BuildServiceInstanceFor(
- content::BrowserContext* context) const {
- return new NetworkTimeService(static_cast<Profile*>(context));
-}

Powered by Google App Engine
This is Rietveld 408576698