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

Unified Diff: chrome/browser/profiles/off_the_record_profile_io_data.cc

Issue 1844753002: Histogram the scheme of an origin on the 1st navigation to it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/profiles/off_the_record_profile_io_data.cc
diff --git a/chrome/browser/profiles/off_the_record_profile_io_data.cc b/chrome/browser/profiles/off_the_record_profile_io_data.cc
index 89b57acf8b5f24badf53aca31b9668a07449ac47..ec3da325551f6949aa2939e481ddcd417f0958be 100644
--- a/chrome/browser/profiles/off_the_record_profile_io_data.cc
+++ b/chrome/browser/profiles/off_the_record_profile_io_data.cc
@@ -390,3 +390,9 @@ OffTheRecordProfileIOData::AcquireIsolatedMediaRequestContext(
NOTREACHED();
return NULL;
}
+
+bool OffTheRecordProfileIOData::HaveAlreadySeenOrigin(
+ const url::Origin& origin) {
+ auto found = origins_seen_.insert(origin);
+ return found.second == false;
+}

Powered by Google App Engine
This is Rietveld 408576698