| 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/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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 #include "ui/base/layout.h" | 117 #include "ui/base/layout.h" |
| 118 #include "ui/base/resource/resource_bundle.h" | 118 #include "ui/base/resource/resource_bundle.h" |
| 119 #include "ui/base/resource/resource_handle.h" | 119 #include "ui/base/resource/resource_handle.h" |
| 120 | 120 |
| 121 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) | 121 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) |
| 122 #include "chrome/browser/first_run/upgrade_util_linux.h" | 122 #include "chrome/browser/first_run/upgrade_util_linux.h" |
| 123 #endif | 123 #endif |
| 124 | 124 |
| 125 #if defined(OS_CHROMEOS) | 125 #if defined(OS_CHROMEOS) |
| 126 #include "chrome/browser/chromeos/cros/cros_library.h" | 126 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 127 #include "chrome/browser/chromeos/cros_settings.h" | 127 #include "chrome/browser/chromeos/settings/cros_settings.h" |
| 128 #include "chrome/browser/chromeos/cros_settings_names.h" | 128 #include "chrome/browser/chromeos/settings/cros_settings_names.h" |
| 129 #endif | 129 #endif |
| 130 | 130 |
| 131 // TODO(port): several win-only methods have been pulled out of this, but | 131 // TODO(port): several win-only methods have been pulled out of this, but |
| 132 // BrowserMain() as a whole needs to be broken apart so that it's usable by | 132 // BrowserMain() as a whole needs to be broken apart so that it's usable by |
| 133 // other platforms. For now, it's just a stub. This is a serious work in | 133 // other platforms. For now, it's just a stub. This is a serious work in |
| 134 // progress and should not be taken as an indication of a real refactoring. | 134 // progress and should not be taken as an indication of a real refactoring. |
| 135 | 135 |
| 136 #if defined(OS_WIN) | 136 #if defined(OS_WIN) |
| 137 #include "base/environment.h" // For PreRead experiment. | 137 #include "base/environment.h" // For PreRead experiment. |
| 138 #include "base/win/windows_version.h" | 138 #include "base/win/windows_version.h" |
| (...skipping 1372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1511 if (base::win::GetVersion() <= base::win::VERSION_XP) | 1511 if (base::win::GetVersion() <= base::win::VERSION_XP) |
| 1512 uma_name += "_XP"; | 1512 uma_name += "_XP"; |
| 1513 | 1513 |
| 1514 uma_name += "_PreRead_"; | 1514 uma_name += "_PreRead_"; |
| 1515 uma_name += pre_read_percentage; | 1515 uma_name += pre_read_percentage; |
| 1516 AddPreReadHistogramTime(uma_name.c_str(), time); | 1516 AddPreReadHistogramTime(uma_name.c_str(), time); |
| 1517 } | 1517 } |
| 1518 #endif | 1518 #endif |
| 1519 #endif | 1519 #endif |
| 1520 } | 1520 } |
| OLD | NEW |