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

Side by Side Diff: chrome/browser/profiles/profile_statistics.cc

Issue 1415223002: Add counts of User data to ProfileInfoCache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change GetStatistic from int(...) back to bool(..., int*) Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698