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

Unified Diff: chrome/browser/android/browsing_data/browsing_data_counter_bridge.cc

Issue 2121203002: Add BrowsingDataCounterFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_bd_counters_to_components
Patch Set: Addressed comments Created 4 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/browsing_data/browsing_data_counter_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | chrome/browser/browsing_data/browsing_data_counter_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698