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

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

Issue 9620010: Added Protector backup for Preferences. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reupload Created 8 years, 9 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 | « chrome/browser/prefs/pref_set_observer.cc ('k') | chrome/browser/protector/histograms.cc » ('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.
18 extern const char kProtectorHistogramPrefs[];
19
17 // Protector histogram values. 20 // Protector histogram values.
18 enum ProtectorError { 21 enum ProtectorError {
19 kProtectorErrorBackupInvalid, 22 kProtectorErrorBackupInvalid,
20 kProtectorErrorValueChanged, 23 kProtectorErrorValueChanged,
21 kProtectorErrorValueValid, 24 kProtectorErrorValueValid,
22 kProtectorErrorValueValidZero, 25 kProtectorErrorValueValidZero,
23 26
24 // This is for convenience only, must always be the last. 27 // This is for convenience only, must always be the last.
25 kProtectorErrorCount 28 kProtectorErrorCount
26 }; 29 };
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // Maximum value of search provider index in histogram enums. 63 // Maximum value of search provider index in histogram enums.
61 extern const int kProtectorMaxSearchProviderID; 64 extern const int kProtectorMaxSearchProviderID;
62 65
63 // Returns index to be used in histograms for given search provider (which may 66 // Returns index to be used in histograms for given search provider (which may
64 // be NULL, in which case a special index will be returned). 67 // be NULL, in which case a special index will be returned).
65 int GetSearchProviderHistogramID(const TemplateURL* turl); 68 int GetSearchProviderHistogramID(const TemplateURL* turl);
66 69
67 } // namespace protector 70 } // namespace protector
68 71
69 #endif // CHROME_BROWSER_PROTECTOR_HISTOGRAMS_H_ 72 #endif // CHROME_BROWSER_PROTECTOR_HISTOGRAMS_H_
OLDNEW
« no previous file with comments | « chrome/browser/prefs/pref_set_observer.cc ('k') | chrome/browser/protector/histograms.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698