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

Unified Diff: content/browser/browsing_data/clear_site_data_throttle.h

Issue 2274853002: Add metrics for the Clear-Site-Data header. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl format Created 4 years, 4 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 | content/browser/browsing_data/clear_site_data_throttle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browsing_data/clear_site_data_throttle.h
diff --git a/content/browser/browsing_data/clear_site_data_throttle.h b/content/browser/browsing_data/clear_site_data_throttle.h
index ea5996679cec3803605e9f0a5565586482f6e7d9..024982754cbb274f2a2e1fca284afd1494bea9e1 100644
--- a/content/browser/browsing_data/clear_site_data_throttle.h
+++ b/content/browser/browsing_data/clear_site_data_throttle.h
@@ -76,6 +76,10 @@ class CONTENT_EXPORT ClearSiteDataThrottle : public NavigationThrottle {
// been completed;
bool clearing_in_progress_;
+ // The time when the last clearing operation started. Used when clearing
+ // finishes to compute the duration.
+ base::TimeTicks clearing_started_;
+
// Needed for asynchronous parsing and deletion tasks.
base::WeakPtrFactory<ClearSiteDataThrottle> weak_ptr_factory_;
« no previous file with comments | « no previous file | content/browser/browsing_data/clear_site_data_throttle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698