Index: chrome/browser/profiles/profile_io_data.cc |
diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc |
index 39ec7628594b68bd18c44e8c8817c982a3eb6202..5de111e8967130b63339307345dcb8cfb23f7d85 100644 |
--- a/chrome/browser/profiles/profile_io_data.cc |
+++ b/chrome/browser/profiles/profile_io_data.cc |
@@ -868,6 +868,10 @@ bool ProfileIOData::IsOffTheRecord() const { |
|| profile_type() == Profile::GUEST_PROFILE; |
} |
+bool ProfileIOData::HaveAlreadySeenOrigin(const url::Origin& origin) { |
+ return origins_seen_.insert(origin).second == false; |
+} |
+ |
void ProfileIOData::InitializeMetricsEnabledStateOnUIThread() { |
DCHECK_CURRENTLY_ON(BrowserThread::UI); |
#if BUILDFLAG(ANDROID_JAVA_UI) |