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

Unified Diff: chrome/browser/tab_contents/origins_seen_service_factory.cc

Issue 2823233003: Deprecate Once-Per-Origin Navigation histograms (Closed)
Patch Set: Remove deleted .h from .mm Created 3 years, 8 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/tab_contents/origins_seen_service_factory.h ('k') | components/navigation_metrics/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/origins_seen_service_factory.cc
diff --git a/chrome/browser/tab_contents/origins_seen_service_factory.cc b/chrome/browser/tab_contents/origins_seen_service_factory.cc
deleted file mode 100644
index fc14b96e4ea0bb28b437a7e103f676321a4763cc..0000000000000000000000000000000000000000
--- a/chrome/browser/tab_contents/origins_seen_service_factory.cc
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2016 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/tab_contents/origins_seen_service_factory.h"
-
-#include "chrome/browser/profiles/incognito_helpers.h"
-#include "components/keyed_service/content/browser_context_dependency_manager.h"
-#include "components/navigation_metrics/origins_seen_service.h"
-
-// static
-navigation_metrics::OriginsSeenService*
-OriginsSeenServiceFactory::GetForBrowserContext(
- content::BrowserContext* context) {
- return static_cast<navigation_metrics::OriginsSeenService*>(
- GetInstance()->GetServiceForBrowserContext(context, true));
-}
-
-// static
-OriginsSeenServiceFactory* OriginsSeenServiceFactory::GetInstance() {
- return base::Singleton<OriginsSeenServiceFactory>::get();
-}
-
-// static
-KeyedService* OriginsSeenServiceFactory::BuildInstanceFor(
- content::BrowserContext* context) {
- return new navigation_metrics::OriginsSeenService();
-}
-
-OriginsSeenServiceFactory::OriginsSeenServiceFactory()
- : BrowserContextKeyedServiceFactory(
- "OriginsSeenService",
- BrowserContextDependencyManager::GetInstance()) {}
-
-OriginsSeenServiceFactory::~OriginsSeenServiceFactory() {}
-
-content::BrowserContext* OriginsSeenServiceFactory::GetBrowserContextToUse(
- content::BrowserContext* context) const {
- return chrome::GetBrowserContextOwnInstanceInIncognito(context);
-}
-
-KeyedService* OriginsSeenServiceFactory::BuildServiceInstanceFor(
- content::BrowserContext* context) const {
- return BuildInstanceFor(context);
-}
« no previous file with comments | « chrome/browser/tab_contents/origins_seen_service_factory.h ('k') | components/navigation_metrics/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698