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

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

Issue 11493003: Remove the protector service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix implicit ExtensionSystem -> TemplateURLService dependency Created 8 years 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/protector/histograms.h ('k') | chrome/browser/protector/homepage_change.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « chrome/browser/protector/histograms.h ('k') | chrome/browser/protector/homepage_change.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698