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

Unified Diff: chrome/browser/browsing_data/browsing_data_counter_utils.cc

Issue 2812113004: Write last_modified date to Content Settings in the PrefProvider (Closed)
Patch Set: rebase Created 3 years, 8 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: chrome/browser/browsing_data/browsing_data_counter_utils.cc
diff --git a/chrome/browser/browsing_data/browsing_data_counter_utils.cc b/chrome/browser/browsing_data/browsing_data_counter_utils.cc
index bd1e26fa342b01bc3697432b39a5f13d4c3decf9..9b50b398ec28b5162a45552c3be983aeed32379c 100644
--- a/chrome/browser/browsing_data/browsing_data_counter_utils.cc
+++ b/chrome/browser/browsing_data/browsing_data_counter_utils.cc
@@ -10,6 +10,7 @@
#include "chrome/browser/browsing_data/cache_counter.h"
#include "chrome/browser/browsing_data/media_licenses_counter.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/common/chrome_features.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/pref_names.h"
#include "chrome/grit/generated_resources.h"
@@ -26,9 +27,6 @@
#include "chrome/browser/browsing_data/hosted_apps_counter.h"
#endif
-#if defined(OS_ANDROID)
-#include "chrome/browser/android/chrome_feature_list.h"
-#endif
bool AreCountersEnabled() {
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
@@ -46,13 +44,8 @@ bool AreCountersEnabled() {
}
bool IsSiteDataCounterEnabled() {
-#if defined(OS_ANDROID)
// Only use the site data counter for the new CBD ui.
- return base::FeatureList::IsEnabled(chrome::android::kTabsInCBD);
-#else
- // Don't use the counter on other platforms that don't yet have the new ui.
- return false;
-#endif
+ return base::FeatureList::IsEnabled(features::kTabsInCbd);
}
// A helper function to display the size of cache in units of MB or higher.
« no previous file with comments | « chrome/browser/android/chrome_feature_list.cc ('k') | chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698