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

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

Issue 2594723002: Count number of origins with data affected by clearing "cookies and site data". (Closed)
Patch Set: improve string description Created 3 years, 10 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_factory.cc
diff --git a/chrome/browser/browsing_data/browsing_data_counter_factory.cc b/chrome/browser/browsing_data/browsing_data_counter_factory.cc
index 2cdc16c9955fa1e3c5c9f7c5e3bf87bf5e433544..23b88ff71070e0bd8298334a3f5b95cd13db7fa1 100644
--- a/chrome/browser/browsing_data/browsing_data_counter_factory.cc
+++ b/chrome/browser/browsing_data/browsing_data_counter_factory.cc
@@ -11,6 +11,7 @@
#include "chrome/browser/browsing_data/cache_counter.h"
#include "chrome/browser/browsing_data/downloads_counter.h"
#include "chrome/browser/browsing_data/media_licenses_counter.h"
+#include "chrome/browser/browsing_data/site_data_counter.h"
#include "chrome/browser/history/history_service_factory.h"
#include "chrome/browser/history/web_history_service_factory.h"
#include "chrome/browser/password_manager/password_store_factory.h"
@@ -60,6 +61,10 @@ BrowsingDataCounterFactory::GetForProfileAndPref(Profile* profile,
pref_name == browsing_data::prefs::kDeleteCacheBasic)
return base::MakeUnique<CacheCounter>(profile);
+ if (pref_name == browsing_data::prefs::kDeleteCookies &&
+ IsCookieCounterEnabled())
+ return base::MakeUnique<SiteDataCounter>(profile);
msramek 2017/03/06 09:40:57 style: braces if the "if" statement takes more tha
dullweber 2017/03/06 10:44:53 Done.
+
if (pref_name == browsing_data::prefs::kDeletePasswords) {
return base::MakeUnique<browsing_data::PasswordsCounter>(
PasswordStoreFactory::GetForProfile(

Powered by Google App Engine
This is Rietveld 408576698