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

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: Add blank line 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
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..6b236368cd6325d798b9db7a7f5f1d04ecde6911 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 the counters 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_

Powered by Google App Engine
This is Rietveld 408576698