| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 #include "net/url_request/url_request_throttler_manager.h" | 110 #include "net/url_request/url_request_throttler_manager.h" |
| 111 #include "net/websockets/websocket_job.h" | 111 #include "net/websockets/websocket_job.h" |
| 112 #include "ui/base/l10n/l10n_util.h" | 112 #include "ui/base/l10n/l10n_util.h" |
| 113 #include "ui/base/resource/resource_bundle.h" | 113 #include "ui/base/resource/resource_bundle.h" |
| 114 | 114 |
| 115 #if defined(USE_LINUX_BREAKPAD) | 115 #if defined(USE_LINUX_BREAKPAD) |
| 116 #include "base/linux_util.h" | 116 #include "base/linux_util.h" |
| 117 #include "chrome/app/breakpad_linux.h" | 117 #include "chrome/app/breakpad_linux.h" |
| 118 #endif | 118 #endif |
| 119 | 119 |
| 120 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 120 #if defined(TOOLKIT_USES_GTK) |
| 121 #include "chrome/browser/ui/gtk/gtk_util.h" | 121 #include "chrome/browser/ui/gtk/gtk_util.h" |
| 122 #endif | 122 #endif |
| 123 | 123 |
| 124 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) | 124 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) |
| 125 #include "chrome/browser/first_run/upgrade_util_linux.h" | 125 #include "chrome/browser/first_run/upgrade_util_linux.h" |
| 126 #endif | 126 #endif |
| 127 | 127 |
| 128 #if defined(OS_CHROMEOS) | 128 #if defined(OS_CHROMEOS) |
| 129 #include "chrome/browser/chromeos/boot_times_loader.h" | 129 #include "chrome/browser/chromeos/boot_times_loader.h" |
| 130 #include "chrome/browser/chromeos/brightness_observer.h" | 130 #include "chrome/browser/chromeos/brightness_observer.h" |
| (...skipping 1910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2041 if (env->GetVar(chrome::kPreReadEnvironmentVariable, &pre_read) && | 2041 if (env->GetVar(chrome::kPreReadEnvironmentVariable, &pre_read) && |
| 2042 (pre_read == "0" || pre_read == "1")) { | 2042 (pre_read == "0" || pre_read == "1")) { |
| 2043 std::string uma_name(name); | 2043 std::string uma_name(name); |
| 2044 uma_name += "_PreRead"; | 2044 uma_name += "_PreRead"; |
| 2045 uma_name += pre_read == "1" ? "Enabled" : "Disabled"; | 2045 uma_name += pre_read == "1" ? "Enabled" : "Disabled"; |
| 2046 AddPreReadHistogramTime(uma_name.c_str(), time); | 2046 AddPreReadHistogramTime(uma_name.c_str(), time); |
| 2047 } | 2047 } |
| 2048 #endif | 2048 #endif |
| 2049 #endif | 2049 #endif |
| 2050 } | 2050 } |
| OLD | NEW |