| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/browser/protector/histograms.h" | |
| 6 | |
| 7 #include "base/memory/scoped_ptr.h" | |
| 8 #include "chrome/browser/search_engines/template_url.h" | |
| 9 #include "chrome/browser/search_engines/template_url_prepopulate_data.h" | |
| 10 | |
| 11 namespace protector { | |
| 12 | |
| 13 const char kProtectorHistogramDefaultSearchProvider[] = | |
| 14 "Protector.DefaultSearchProvider"; | |
| 15 | |
| 16 const char kProtectorHistogramPrefs[] = | |
| 17 "Protector.Preferences"; | |
| 18 | |
| 19 const char kProtectorHistogramSearchProviderApplied[] = | |
| 20 "Protector.SearchProvider.Applied"; | |
| 21 const char kProtectorHistogramSearchProviderCorrupt[] = | |
| 22 "Protector.SearchProvider.Corrupt"; | |
| 23 const char kProtectorHistogramSearchProviderDiscarded[] = | |
| 24 "Protector.SearchProvider.Discarded"; | |
| 25 const char kProtectorHistogramSearchProviderFallback[] = | |
| 26 "Protector.SearchProvider.Fallback"; | |
| 27 const char kProtectorHistogramSearchProviderHijacked[] = | |
| 28 "Protector.SearchProvider.Hijacked"; | |
| 29 const char kProtectorHistogramSearchProviderMissing[] = | |
| 30 "Protector.SearchProvider.Missing"; | |
| 31 const char kProtectorHistogramSearchProviderRestored[] = | |
| 32 "Protector.SearchProvider.Restored"; | |
| 33 const char kProtectorHistogramSearchProviderTimeout[] = | |
| 34 "Protector.SearchProvider.Timeout"; | |
| 35 | |
| 36 const char kProtectorHistogramStartupSettingsApplied[] = | |
| 37 "Protector.StartupSettings.Applied"; | |
| 38 const char kProtectorHistogramStartupSettingsChanged[] = | |
| 39 "Protector.StartupSettings.Changed"; | |
| 40 const char kProtectorHistogramStartupSettingsDiscarded[] = | |
| 41 "Protector.StartupSettings.Discarded"; | |
| 42 const char kProtectorHistogramStartupSettingsTimeout[] = | |
| 43 "Protector.StartupSettings.Timeout"; | |
| 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 | |
| 54 const int kProtectorMaxSearchProviderID = SEARCH_ENGINE_MAX; | |
| 55 | |
| 56 int GetSearchProviderHistogramID(const TemplateURL* t_url) { | |
| 57 return t_url ? | |
| 58 TemplateURLPrepopulateData::GetEngineType(t_url->url()) : | |
| 59 SEARCH_ENGINE_NONE; | |
| 60 } | |
| 61 | |
| 62 } // namespace protector | |
| OLD | NEW |