OLD | NEW |
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 #include "chrome/browser/protector/histograms.h" | 5 #include "chrome/browser/protector/histograms.h" |
6 | 6 |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "chrome/browser/search_engines/template_url.h" | 8 #include "chrome/browser/search_engines/template_url.h" |
9 #include "chrome/browser/search_engines/template_url_prepopulate_data.h" | 9 #include "chrome/browser/search_engines/template_url_prepopulate_data.h" |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... |
35 | 35 |
36 const char kProtectorHistogramStartupSettingsApplied[] = | 36 const char kProtectorHistogramStartupSettingsApplied[] = |
37 "Protector.StartupSettings.Applied"; | 37 "Protector.StartupSettings.Applied"; |
38 const char kProtectorHistogramStartupSettingsChanged[] = | 38 const char kProtectorHistogramStartupSettingsChanged[] = |
39 "Protector.StartupSettings.Changed"; | 39 "Protector.StartupSettings.Changed"; |
40 const char kProtectorHistogramStartupSettingsDiscarded[] = | 40 const char kProtectorHistogramStartupSettingsDiscarded[] = |
41 "Protector.StartupSettings.Discarded"; | 41 "Protector.StartupSettings.Discarded"; |
42 const char kProtectorHistogramStartupSettingsTimeout[] = | 42 const char kProtectorHistogramStartupSettingsTimeout[] = |
43 "Protector.StartupSettings.Timeout"; | 43 "Protector.StartupSettings.Timeout"; |
44 | 44 |
| 45 const char kProtectorHistogramHomepageApplied[] = |
| 46 "Protector.Homepage.Applied"; |
| 47 const char kProtectorHistogramHomepageChanged[] = |
| 48 "Protector.Homepage.Changed"; |
| 49 const char kProtectorHistogramHomepageDiscarded[] = |
| 50 "Protector.Homepage.Discarded"; |
| 51 const char kProtectorHistogramHomepageTimeout[] = |
| 52 "Protector.Homepage.Timeout"; |
| 53 |
45 const int kProtectorMaxSearchProviderID = SEARCH_ENGINE_MAX; | 54 const int kProtectorMaxSearchProviderID = SEARCH_ENGINE_MAX; |
46 | 55 |
47 int GetSearchProviderHistogramID(const TemplateURL* t_url) { | 56 int GetSearchProviderHistogramID(const TemplateURL* t_url) { |
48 return t_url ? | 57 return t_url ? |
49 TemplateURLPrepopulateData::GetEngineType(t_url->url()) : | 58 TemplateURLPrepopulateData::GetEngineType(t_url->url()) : |
50 SEARCH_ENGINE_NONE; | 59 SEARCH_ENGINE_NONE; |
51 } | 60 } |
52 | 61 |
53 } // namespace protector | 62 } // namespace protector |
OLD | NEW |