OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/file_path_verifier_win.h" | 5 #include "chrome/browser/profiles/file_path_verifier_win.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 | 8 |
9 #include "base/file_util.h" | |
10 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/files/file_util.h" |
11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
12 #include "chrome_elf/create_file/chrome_create_file.h" | 12 #include "chrome_elf/create_file/chrome_create_file.h" |
13 | 13 |
14 namespace { | 14 namespace { |
15 | 15 |
16 // This enum is used in UMA histograms and should never be re-ordered. | 16 // This enum is used in UMA histograms and should never be re-ordered. |
17 enum FileVerificationResult { | 17 enum FileVerificationResult { |
18 FILE_VERIFICATION_SUCCESS, | 18 FILE_VERIFICATION_SUCCESS, |
19 FILE_VERIFICATION_FILE_NOT_FOUND, | 19 FILE_VERIFICATION_FILE_NOT_FOUND, |
20 FILE_VERIFICATION_INTERNAL_ERROR, | 20 FILE_VERIFICATION_INTERNAL_ERROR, |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 88 |
89 } // namespace internal | 89 } // namespace internal |
90 | 90 |
91 void VerifyPreferencesFile(const base::FilePath& pref_file_path) { | 91 void VerifyPreferencesFile(const base::FilePath& pref_file_path) { |
92 FileVerificationResult file_verification_result = | 92 FileVerificationResult file_verification_result = |
93 VerifyFileAtPath(pref_file_path); | 93 VerifyFileAtPath(pref_file_path); |
94 UMA_HISTOGRAM_ENUMERATION("Stability.FileAtPath.Preferences", | 94 UMA_HISTOGRAM_ENUMERATION("Stability.FileAtPath.Preferences", |
95 file_verification_result, | 95 file_verification_result, |
96 NUM_FILE_VERIFICATION_RESULTS); | 96 NUM_FILE_VERIFICATION_RESULTS); |
97 } | 97 } |
OLD | NEW |