Chromium Code Reviews| 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( |