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

Unified Diff: components/browsing_data/core/counters/browsing_data_counter.cc

Issue 2623033003: Always show counters in the material design Clear Browsing Data dialog. (Closed)
Patch Set: iOS fix #2 Created 3 years, 11 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/counters/browsing_data_counter.cc
diff --git a/components/browsing_data/core/counters/browsing_data_counter.cc b/components/browsing_data/core/counters/browsing_data_counter.cc
index 1af879c6576b400ca07fc1d66862630e5258ec0e..ec67193687bca28fc26a48e1a64ae508680f2fe6 100644
--- a/components/browsing_data/core/counters/browsing_data_counter.cc
+++ b/components/browsing_data/core/counters/browsing_data_counter.cc
@@ -40,13 +40,7 @@ base::Time BrowsingDataCounter::GetPeriodStart() {
void BrowsingDataCounter::Restart() {
DCHECK(initialized_);
-
- // If this data type was unchecked for deletion, we do not need to count it.
- if (!pref_service_->GetBoolean(GetPrefName()))
- return;
-
callback_.Run(base::MakeUnique<Result>(this));
-
Count();
}
« no previous file with comments | « components/browsing_data/core/counters/autofill_counter.cc ('k') | ios/chrome/browser/browsing_data/cache_counter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698