| // Copyright 2015 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef CHROME_BROWSER_BROWSING_DATA_COUNTERS_BROWSING_DATA_COUNTER_UTILS_H_ |
| #define CHROME_BROWSER_BROWSING_DATA_COUNTERS_BROWSING_DATA_COUNTER_UTILS_H_ |
| |
| #include <string> |
| |
| #include "components/browsing_data/core/browsing_data_utils.h" |
| #include "components/browsing_data/core/counters/browsing_data_counter.h" |
| |
| class Profile; |
| |
| namespace browsing_data_counter_utils { |
| |
| // Whether the exception about not being signed out of your Google profile |
| // should be shown. |
| bool ShouldShowCookieException(Profile* profile); |
| |
| // Constructs the text to be displayed by a counter from the given |result|. |
| std::u16string GetChromeCounterTextFromResult( |
| const browsing_data::BrowsingDataCounter::Result* result, |
| Profile* profile); |
| |
| } // namespace browsing_data_counter_utils |
| |
| #endif // CHROME_BROWSER_BROWSING_DATA_COUNTERS_BROWSING_DATA_COUNTER_UTILS_H_ |