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

Side by Side Diff: chrome/browser/protector/histograms.h

Issue 10695115: Add a separate protector UMA state when backup is overwritten by migration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/search_engines/search_engine_type.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_PROTECTOR_HISTOGRAMS_H_ 5 #ifndef CHROME_BROWSER_PROTECTOR_HISTOGRAMS_H_
6 #define CHROME_BROWSER_PROTECTOR_HISTOGRAMS_H_ 6 #define CHROME_BROWSER_PROTECTOR_HISTOGRAMS_H_
7 #pragma once 7 #pragma once
8 8
9 class TemplateURL; 9 class TemplateURL;
10 10
11 namespace protector { 11 namespace protector {
12 12
13 // Histogram name to report protection errors for the default search 13 // Histogram name to report protection errors for the default search
14 // provider. Values are below. 14 // provider. Values are below.
15 extern const char kProtectorHistogramDefaultSearchProvider[]; 15 extern const char kProtectorHistogramDefaultSearchProvider[];
16 16
17 // Histogram name to report protection errors for preferences. Values are below. 17 // Histogram name to report protection errors for preferences. Values are below.
18 extern const char kProtectorHistogramPrefs[]; 18 extern const char kProtectorHistogramPrefs[];
19 19
20 // Protector histogram values. 20 // Protector histogram values.
21 enum ProtectorError { 21 enum ProtectorError {
22 kProtectorErrorBackupInvalid, 22 kProtectorErrorBackupInvalid,
23 kProtectorErrorValueChanged, 23 kProtectorErrorValueChanged,
24 kProtectorErrorValueValid, 24 kProtectorErrorValueValid,
25 kProtectorErrorValueValidZero, 25 kProtectorErrorValueValidZero,
26 kProtectorErrorForcedUpdate, 26 kProtectorErrorForcedUpdate,
27 kProtectorErrorOverwrittenByMigration,
27 28
28 // This is for convenience only, must always be the last. 29 // This is for convenience only, must always be the last.
29 kProtectorErrorCount 30 kProtectorErrorCount
30 }; 31 };
31 32
32 // Histogram name to report when user accepts new default search provider. 33 // Histogram name to report when user accepts new default search provider.
33 extern const char kProtectorHistogramSearchProviderApplied[]; 34 extern const char kProtectorHistogramSearchProviderApplied[];
34 // Histogram name to report the default search provider when the backup is 35 // Histogram name to report the default search provider when the backup is
35 // invalid. 36 // invalid.
36 extern const char kProtectorHistogramSearchProviderCorrupt[]; 37 extern const char kProtectorHistogramSearchProviderCorrupt[];
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // Maximum value of search provider index in histogram enums. 75 // Maximum value of search provider index in histogram enums.
75 extern const int kProtectorMaxSearchProviderID; 76 extern const int kProtectorMaxSearchProviderID;
76 77
77 // Returns index to be used in histograms for given search provider (which may 78 // Returns index to be used in histograms for given search provider (which may
78 // be NULL, in which case a special index will be returned). 79 // be NULL, in which case a special index will be returned).
79 int GetSearchProviderHistogramID(const TemplateURL* turl); 80 int GetSearchProviderHistogramID(const TemplateURL* turl);
80 81
81 } // namespace protector 82 } // namespace protector
82 83
83 #endif // CHROME_BROWSER_PROTECTOR_HISTOGRAMS_H_ 84 #endif // CHROME_BROWSER_PROTECTOR_HISTOGRAMS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/search_engines/search_engine_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698