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

Unified Diff: components/power/origin_power_map.h

Issue 514433002: Clear power consumption auditing when you clear history. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 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 | « chrome/browser/browsing_data/browsing_data_remover.cc ('k') | components/power/origin_power_map.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/power/origin_power_map.h
diff --git a/components/power/origin_power_map.h b/components/power/origin_power_map.h
index 36caa02f0ada89238b9bc3ae7270391f9cc13dc7..3d664daa4845a0d4031883a30d2e9f7d98598d94 100644
--- a/components/power/origin_power_map.h
+++ b/components/power/origin_power_map.h
@@ -43,6 +43,9 @@ class OriginPowerMap : public KeyedService {
// updating for all origins this cycle.
void OnAllOriginsUpdated();
+ // Clears all URLs out of the map.
+ void ClearOriginMap();
+
private:
// OriginMap maps a URL to the amount of power consumed by the URL using the
// same units as |total_consumed_|.
« no previous file with comments | « chrome/browser/browsing_data/browsing_data_remover.cc ('k') | components/power/origin_power_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698