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

Unified Diff: components/browsing_data/core/browsing_data_utils.h

Issue 2228913003: Move part of browsing data counter text util method to components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 | « components/browsing_data/core/DEPS ('k') | components/browsing_data/core/browsing_data_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/browsing_data/core/browsing_data_utils.h
diff --git a/components/browsing_data/core/browsing_data_utils.h b/components/browsing_data/core/browsing_data_utils.h
index 449dfe5b59bccc172db80a5487fdaf995d42d4c3..62586e427ce95405f83f3ecca7b123f908fbc5e0 100644
--- a/components/browsing_data/core/browsing_data_utils.h
+++ b/components/browsing_data/core/browsing_data_utils.h
@@ -7,6 +7,7 @@
#include "base/strings/string16.h"
#include "base/time/time.h"
+#include "components/browsing_data/core/counters/browsing_data_counter.h"
namespace browsing_data {
@@ -42,6 +43,12 @@ enum TimePeriod {
// Calculate the begin time for the deletion range specified by |time_period|.
base::Time CalculateBeginDeleteTime(TimePeriod time_period);
+// Constructs the text to be displayed by a counter from the given |result|.
+// Currently this can only be used for counters for which the Result is defined
+// in components/browsing_data/core/counters.
+base::string16 GetCounterTextFromResult(
+ const browsing_data::BrowsingDataCounter::Result* result);
+
} // namespace browsing_data
#endif // COMPONENTS_BROWSING_DATA_CORE_BROWSING_DATA_UTILS_H_
« no previous file with comments | « components/browsing_data/core/DEPS ('k') | components/browsing_data/core/browsing_data_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698