OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/profiles/profile_statistics.h" | 5 #include "chrome/browser/profiles/profile_statistics.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
10 #include "base/task_runner.h" | 10 #include "base/task_runner.h" |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 result.success = false; | 244 result.success = false; |
245 } | 245 } |
246 return result; | 246 return result; |
247 } | 247 } |
248 | 248 |
249 } // namespace | 249 } // namespace |
250 | 250 |
251 namespace profiles { | 251 namespace profiles { |
252 | 252 |
253 // Constants for the categories in ProfileCategoryStats | 253 // Constants for the categories in ProfileCategoryStats |
254 const char kProfileStatisticsBrowsingHistory[] = "BrowsingHistory"; | 254 const char kProfileStatisticsBrowsingHistory[] = "browsing_history"; |
255 const char kProfileStatisticsPasswords[] = "Passwords"; | 255 const char kProfileStatisticsPasswords[] = "passwords"; |
256 const char kProfileStatisticsBookmarks[] = "Bookmarks"; | 256 const char kProfileStatisticsBookmarks[] = "bookmarks"; |
257 const char kProfileStatisticsSettings[] = "Settings"; | 257 const char kProfileStatisticsSettings[] = "settings"; |
258 | 258 |
259 void GetProfileStatistics(Profile* profile, | 259 void GetProfileStatistics(Profile* profile, |
260 const ProfileStatisticsCallback& callback, | 260 const ProfileStatisticsCallback& callback, |
261 base::CancelableTaskTracker* tracker) { | 261 base::CancelableTaskTracker* tracker) { |
262 scoped_refptr<ProfileStatisticsAggregator> aggregator = | 262 scoped_refptr<ProfileStatisticsAggregator> aggregator = |
263 new ProfileStatisticsAggregator(profile, callback, tracker); | 263 new ProfileStatisticsAggregator(profile, callback, tracker); |
264 } | 264 } |
265 | 265 |
266 } // namespace profiles | 266 } // namespace profiles |
OLD | NEW |