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

Unified Diff: components/history/core/browser/history_types.h

Issue 1901563002: Set site engagement timestamps to privacy-respectful values when history is cleared. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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
Index: components/history/core/browser/history_types.h
diff --git a/components/history/core/browser/history_types.h b/components/history/core/browser/history_types.h
index 51e948c153a2ad054ebf1fe12794d12bfcfbcda5..db976d244b254a903886102451fe4c6cab0bc929 100644
--- a/components/history/core/browser/history_types.h
+++ b/components/history/core/browser/history_types.h
@@ -459,8 +459,9 @@ class MostVisitedThumbnails
// Map from host to visit count, sorted by visit count descending.
typedef std::vector<std::pair<std::string, int>> TopHostsList;
-// Map from origins to a count of matching URLs.
-typedef std::map<GURL, int> OriginCountMap;
+// Map from origins to a count of matching URLs and the last visited time to any
+// URL under that origin.
+typedef std::map<GURL, std::pair<int, base::Time>> OriginCountMap;
sdefresne 2016/04/19 07:18:01 OriginCountAndLastVisitedMap?
dominickn 2016/04/19 07:59:32 Done.
// Statistics -----------------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698