| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/chrome_browser_main.h" | 5 #include "chrome/browser/chrome_browser_main.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 #include "chrome/browser/profiles/profile_manager.h" | 70 #include "chrome/browser/profiles/profile_manager.h" |
| 71 #include "chrome/browser/search_engines/search_engine_type.h" | 71 #include "chrome/browser/search_engines/search_engine_type.h" |
| 72 #include "chrome/browser/search_engines/template_url.h" | 72 #include "chrome/browser/search_engines/template_url.h" |
| 73 #include "chrome/browser/search_engines/template_url_service.h" | 73 #include "chrome/browser/search_engines/template_url_service.h" |
| 74 #include "chrome/browser/search_engines/template_url_service_factory.h" | 74 #include "chrome/browser/search_engines/template_url_service_factory.h" |
| 75 #include "chrome/browser/service/service_process_control.h" | 75 #include "chrome/browser/service/service_process_control.h" |
| 76 #include "chrome/browser/shell_integration.h" | 76 #include "chrome/browser/shell_integration.h" |
| 77 #include "chrome/browser/translate/translate_manager.h" | 77 #include "chrome/browser/translate/translate_manager.h" |
| 78 #include "chrome/browser/ui/browser.h" | 78 #include "chrome/browser/ui/browser.h" |
| 79 #include "chrome/browser/ui/webui/chrome_url_data_manager_backend.h" | 79 #include "chrome/browser/ui/webui/chrome_url_data_manager_backend.h" |
| 80 #include "chrome/browser/ui/webui/sync_promo_trial.h" | 80 #include "chrome/browser/ui/webui/sync_promo/sync_promo_trial.h" |
| 81 #include "chrome/common/child_process_logging.h" | 81 #include "chrome/common/child_process_logging.h" |
| 82 #include "chrome/common/chrome_constants.h" | 82 #include "chrome/common/chrome_constants.h" |
| 83 #include "chrome/common/chrome_paths.h" | 83 #include "chrome/common/chrome_paths.h" |
| 84 #include "chrome/common/chrome_result_codes.h" | 84 #include "chrome/common/chrome_result_codes.h" |
| 85 #include "chrome/common/chrome_switches.h" | 85 #include "chrome/common/chrome_switches.h" |
| 86 #include "chrome/common/chrome_version_info.h" | 86 #include "chrome/common/chrome_version_info.h" |
| 87 #include "chrome/common/env_vars.h" | 87 #include "chrome/common/env_vars.h" |
| 88 #include "chrome/common/json_pref_store.h" | 88 #include "chrome/common/json_pref_store.h" |
| 89 #include "chrome/common/jstemplate_builder.h" | 89 #include "chrome/common/jstemplate_builder.h" |
| 90 #include "chrome/common/logging_chrome.h" | 90 #include "chrome/common/logging_chrome.h" |
| (...skipping 2062 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2153 if (env->GetVar(chrome::kPreReadEnvironmentVariable, &pre_read) && | 2153 if (env->GetVar(chrome::kPreReadEnvironmentVariable, &pre_read) && |
| 2154 (pre_read == "0" || pre_read == "1")) { | 2154 (pre_read == "0" || pre_read == "1")) { |
| 2155 std::string uma_name(name); | 2155 std::string uma_name(name); |
| 2156 uma_name += "_PreRead"; | 2156 uma_name += "_PreRead"; |
| 2157 uma_name += pre_read == "1" ? "Enabled" : "Disabled"; | 2157 uma_name += pre_read == "1" ? "Enabled" : "Disabled"; |
| 2158 AddPreReadHistogramTime(uma_name.c_str(), time); | 2158 AddPreReadHistogramTime(uma_name.c_str(), time); |
| 2159 } | 2159 } |
| 2160 #endif | 2160 #endif |
| 2161 #endif | 2161 #endif |
| 2162 } | 2162 } |
| OLD | NEW |