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

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

Issue 1897343003: Componentize OriginsSeenService & provide iOS factory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and address nit Created 4 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/tab_contents/origins_seen_service_factory.h ('k') | chrome/chrome_browser.gypi » ('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
index 67f00f90077d59f18a83b52db019db0de8f95884..fc14b96e4ea0bb28b437a7e103f676321a4763cc 100644
--- a/chrome/browser/tab_contents/origins_seen_service_factory.cc
+++ b/chrome/browser/tab_contents/origins_seen_service_factory.cc
@@ -6,11 +6,13 @@
#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
-OriginsSeenService* OriginsSeenServiceFactory::GetForBrowserContext(
+navigation_metrics::OriginsSeenService*
+OriginsSeenServiceFactory::GetForBrowserContext(
content::BrowserContext* context) {
- return static_cast<OriginsSeenService*>(
+ return static_cast<navigation_metrics::OriginsSeenService*>(
GetInstance()->GetServiceForBrowserContext(context, true));
}
@@ -22,7 +24,7 @@ OriginsSeenServiceFactory* OriginsSeenServiceFactory::GetInstance() {
// static
KeyedService* OriginsSeenServiceFactory::BuildInstanceFor(
content::BrowserContext* context) {
- return new OriginsSeenService();
+ return new navigation_metrics::OriginsSeenService();
}
OriginsSeenServiceFactory::OriginsSeenServiceFactory()
« no previous file with comments | « chrome/browser/tab_contents/origins_seen_service_factory.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698