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

Unified Diff: chrome/browser/tab_contents/navigation_metrics_recorder.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 | « no previous file | chrome/browser/tab_contents/origins_seen_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/navigation_metrics_recorder.cc
diff --git a/chrome/browser/tab_contents/navigation_metrics_recorder.cc b/chrome/browser/tab_contents/navigation_metrics_recorder.cc
index f5078585f7233a141a98cbc612e76b17bc65c4f5..4f7174297dc20595f509d943317f089d276a934d 100644
--- a/chrome/browser/tab_contents/navigation_metrics_recorder.cc
+++ b/chrome/browser/tab_contents/navigation_metrics_recorder.cc
@@ -7,9 +7,9 @@
#include "base/metrics/histogram_macros.h"
#include "build/build_config.h"
#include "chrome/browser/browser_process.h"
-#include "chrome/browser/tab_contents/origins_seen_service.h"
#include "chrome/browser/tab_contents/origins_seen_service_factory.h"
#include "components/navigation_metrics/navigation_metrics.h"
+#include "components/navigation_metrics/origins_seen_service.h"
#include "components/rappor/rappor_utils.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
@@ -42,7 +42,7 @@ void NavigationMetricsRecorder::DidNavigateMainFrame(
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
content::BrowserContext* context = web_contents()->GetBrowserContext();
- OriginsSeenService* service =
+ navigation_metrics::OriginsSeenService* service =
OriginsSeenServiceFactory::GetForBrowserContext(context);
const url::Origin origin(details.entry->GetVirtualURL());
bool have_already_seen_origin = service->Insert(origin);
« no previous file with comments | « no previous file | chrome/browser/tab_contents/origins_seen_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698