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

Unified Diff: chrome/browser/profiles/profile_statistics.cc

Issue 2915053002: Replace profile statistics preference count with AutofillCounter (Closed)
Patch Set: change to SetBooleanWithoutPathExpansion Created 3 years, 6 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/profiles/profile_statistics.cc
diff --git a/chrome/browser/profiles/profile_statistics.cc b/chrome/browser/profiles/profile_statistics.cc
index 284b34d41681270db9801545ec3a0c10b9c2d71e..d73328cff08228744788e01b4e996458dd61acb6 100644
--- a/chrome/browser/profiles/profile_statistics.cc
+++ b/chrome/browser/profiles/profile_statistics.cc
@@ -8,8 +8,6 @@
#include "base/macros.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/profiles/profile_attributes_entry.h"
-#include "chrome/browser/profiles/profile_attributes_storage.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/profiles/profile_statistics_aggregator.h"
@@ -28,7 +26,7 @@ void ProfileStatistics::GatherStatistics(
DCHECK(!profile_->IsOffTheRecord() && !profile_->IsSystemProfile());
if (!aggregator_) {
- aggregator_ = new ProfileStatisticsAggregator(
+ aggregator_ = base::MakeUnique<ProfileStatisticsAggregator>(
profile_, base::Bind(&ProfileStatistics::DeregisterAggregator,
weak_ptr_factory_.GetWeakPtr()));
}
« no previous file with comments | « chrome/browser/profiles/profile_statistics.h ('k') | chrome/browser/profiles/profile_statistics_aggregator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698