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/search_engines/template_url_service.h" | 5 #include "chrome/browser/search_engines/template_url_service.h" |
6 | 6 |
7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/environment.h" | 10 #include "base/environment.h" |
11 #include "base/guid.h" | 11 #include "base/guid.h" |
12 #include "base/i18n/case_conversion.h" | 12 #include "base/i18n/case_conversion.h" |
13 #include "base/memory/scoped_vector.h" | 13 #include "base/memory/scoped_vector.h" |
14 #include "base/metrics/histogram.h" | 14 #include "base/metrics/histogram.h" |
15 #include "base/prefs/pref_service.h" | 15 #include "base/prefs/pref_service.h" |
16 #include "base/stl_util.h" | 16 #include "base/stl_util.h" |
17 #include "base/string_util.h" | 17 #include "base/string_util.h" |
18 #include "base/strings/string_number_conversions.h" | 18 #include "base/strings/string_number_conversions.h" |
19 #include "base/strings/string_split.h" | 19 #include "base/strings/string_split.h" |
| 20 #include "base/strings/utf_string_conversions.h" |
20 #include "base/time.h" | 21 #include "base/time.h" |
21 #include "base/utf_string_conversions.h" | |
22 #include "chrome/browser/google/google_url_tracker.h" | 22 #include "chrome/browser/google/google_url_tracker.h" |
23 #include "chrome/browser/history/history_notifications.h" | 23 #include "chrome/browser/history/history_notifications.h" |
24 #include "chrome/browser/history/history_service.h" | 24 #include "chrome/browser/history/history_service.h" |
25 #include "chrome/browser/history/history_service_factory.h" | 25 #include "chrome/browser/history/history_service_factory.h" |
26 #include "chrome/browser/net/url_fixer_upper.h" | 26 #include "chrome/browser/net/url_fixer_upper.h" |
27 #include "chrome/browser/profiles/profile.h" | 27 #include "chrome/browser/profiles/profile.h" |
28 #include "chrome/browser/rlz/rlz.h" | 28 #include "chrome/browser/rlz/rlz.h" |
29 #include "chrome/browser/search_engines/search_host_to_urls_map.h" | 29 #include "chrome/browser/search_engines/search_host_to_urls_map.h" |
30 #include "chrome/browser/search_engines/search_terms_data.h" | 30 #include "chrome/browser/search_engines/search_terms_data.h" |
31 #include "chrome/browser/search_engines/template_url.h" | 31 #include "chrome/browser/search_engines/template_url.h" |
(...skipping 2485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2517 // Don't log anything if the user has a NULL default search provider. A | 2517 // Don't log anything if the user has a NULL default search provider. A |
2518 // logged value of 0 indicates a custom default search provider. | 2518 // logged value of 0 indicates a custom default search provider. |
2519 if (default_search_provider_) { | 2519 if (default_search_provider_) { |
2520 UMA_HISTOGRAM_ENUMERATION( | 2520 UMA_HISTOGRAM_ENUMERATION( |
2521 kDSPHistogramName, | 2521 kDSPHistogramName, |
2522 default_search_provider_->prepopulate_id(), | 2522 default_search_provider_->prepopulate_id(), |
2523 TemplateURLPrepopulateData::kMaxPrepopulatedEngineID); | 2523 TemplateURLPrepopulateData::kMaxPrepopulatedEngineID); |
2524 } | 2524 } |
2525 } | 2525 } |
2526 } | 2526 } |
OLD | NEW |