OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_metrics.h" | 5 #include "chrome/browser/profiles/profile_metrics.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram_macros.h" |
12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
13 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
15 #include "chrome/browser/profiles/profile_attributes_entry.h" | 15 #include "chrome/browser/profiles/profile_attributes_entry.h" |
16 #include "chrome/browser/profiles/profile_attributes_storage.h" | 16 #include "chrome/browser/profiles/profile_attributes_storage.h" |
17 #include "chrome/browser/profiles/profile_manager.h" | 17 #include "chrome/browser/profiles/profile_manager.h" |
18 #include "chrome/browser/signin/chrome_signin_helper.h" | 18 #include "chrome/browser/signin/chrome_signin_helper.h" |
19 #include "chrome/browser/ui/browser_finder.h" | 19 #include "chrome/browser/ui/browser_finder.h" |
20 #include "chrome/common/chrome_constants.h" | 20 #include "chrome/common/chrome_constants.h" |
21 #include "chrome/installer/util/google_update_settings.h" | 21 #include "chrome/installer/util/google_update_settings.h" |
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 UMA_HISTOGRAM_ENUMERATION("Profile.SyncSignIn", | 544 UMA_HISTOGRAM_ENUMERATION("Profile.SyncSignIn", |
545 GetProfileType(profile_path), | 545 GetProfileType(profile_path), |
546 NUM_PROFILE_TYPE_METRICS); | 546 NUM_PROFILE_TYPE_METRICS); |
547 } | 547 } |
548 | 548 |
549 void ProfileMetrics::LogProfileUpdate(const base::FilePath& profile_path) { | 549 void ProfileMetrics::LogProfileUpdate(const base::FilePath& profile_path) { |
550 UMA_HISTOGRAM_ENUMERATION("Profile.Update", | 550 UMA_HISTOGRAM_ENUMERATION("Profile.Update", |
551 GetProfileType(profile_path), | 551 GetProfileType(profile_path), |
552 NUM_PROFILE_TYPE_METRICS); | 552 NUM_PROFILE_TYPE_METRICS); |
553 } | 553 } |
OLD | NEW |