Index: chrome/browser/android/browsing_data/browsing_data_counter_bridge.cc |
diff --git a/chrome/browser/android/browsing_data/browsing_data_counter_bridge.cc b/chrome/browser/android/browsing_data/browsing_data_counter_bridge.cc |
index 3af31e0dc04f4f1d4712fc155ad2252867e89e91..7fa3724d8766657ccdda50e11095b3ddafe92edb 100644 |
--- a/chrome/browser/android/browsing_data/browsing_data_counter_bridge.cc |
+++ b/chrome/browser/android/browsing_data/browsing_data_counter_bridge.cc |
@@ -5,6 +5,7 @@ |
#include "chrome/browser/android/browsing_data/browsing_data_counter_bridge.h" |
#include "base/android/jni_string.h" |
+#include "chrome/browser/browsing_data/browsing_data_counter_factory.h" |
#include "chrome/browser/browsing_data/browsing_data_counter_utils.h" |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/profiles/profile_manager.h" |
@@ -26,7 +27,7 @@ BrowsingDataCounterBridge::BrowsingDataCounterBridge( |
Profile* profile = |
ProfileManager::GetActiveUserProfile()->GetOriginalProfile(); |
- counter_.reset(CreateCounterForPreference(pref, profile)); |
+ counter_ = BrowsingDataCounterFactory::GetForProfileAndPref(profile, pref); |
if (!counter_) |
return; |