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

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

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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/profiles/profile_statistics.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_statistics.h
diff --git a/chrome/browser/profiles/profile_statistics.h b/chrome/browser/profiles/profile_statistics.h
index 76918c59fcc322ec727bb74d8fff909b894a9cb8..966c373294abed42a5cf99304e0cb45f6c2c408d 100644
--- a/chrome/browser/profiles/profile_statistics.h
+++ b/chrome/browser/profiles/profile_statistics.h
@@ -5,6 +5,7 @@
#ifndef CHROME_BROWSER_PROFILES_PROFILE_STATISTICS_H_
#define CHROME_BROWSER_PROFILES_PROFILE_STATISTICS_H_
+#include <memory>
#include <string>
#include "base/memory/weak_ptr.h"
@@ -22,7 +23,7 @@ class ProfileStatistics : public KeyedService {
// This function collects statistical information about |profile|, also
// returns the information via |callback| if |callback| is not null.
- // Currently bookmarks, history, logins and preferences are counted. The
+ // Currently bookmarks, history, logins and autofill forms are counted. The
// callback function will probably be called more than once, so binding
// parameters with bind::Passed() is prohibited.
void GatherStatistics(const profiles::ProfileStatisticsCallback& callback);
@@ -35,7 +36,7 @@ class ProfileStatistics : public KeyedService {
void DeregisterAggregator();
Profile* profile_;
- scoped_refptr<ProfileStatisticsAggregator> aggregator_;
+ std::unique_ptr<ProfileStatisticsAggregator> aggregator_;
base::WeakPtrFactory<ProfileStatistics> weak_ptr_factory_;
};
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/profiles/profile_statistics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698