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

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

Issue 2230243002: Move remaining clear browsing data util method to components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_rest_of_counter_utils
Patch Set: Fixed formatting 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 62586e427ce95405f83f3ecca7b123f908fbc5e0..15791da0e7e6ee25f8db59793301c13d68114008 100644
--- a/components/browsing_data/core/browsing_data_utils.h
+++ b/components/browsing_data/core/browsing_data_utils.h
@@ -49,6 +49,12 @@ base::Time CalculateBeginDeleteTime(TimePeriod time_period);
base::string16 GetCounterTextFromResult(
const browsing_data::BrowsingDataCounter::Result* result);
+// Copies the name of the deletion preference corresponding to the given
+// |data_type| to |out_pref|. Returns false if no such preference exists.
+bool GetDeletionPreferenceFromDataType(
+ browsing_data::BrowsingDataType data_type,
msramek 2016/08/11 09:12:45 We're in the browsing_data namespace now. This qua
ioanap 2016/08/11 11:19:58 Done.
+ std::string* out_pref);
+
} // namespace browsing_data
#endif // COMPONENTS_BROWSING_DATA_CORE_BROWSING_DATA_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698