| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_field_trials_desktop.h" | 5 #include "chrome/browser/chrome_browser_field_trials_desktop.h" |
| 6 | 6 |
| 7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 #endif | 9 #endif |
| 10 | 10 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #include "components/metrics/persistent_system_profile.h" | 27 #include "components/metrics/persistent_system_profile.h" |
| 28 #include "components/variations/variations_associated_data.h" | 28 #include "components/variations/variations_associated_data.h" |
| 29 #include "content/public/common/content_switches.h" | 29 #include "content/public/common/content_switches.h" |
| 30 #include "media/media_features.h" | 30 #include "media/media_features.h" |
| 31 | 31 |
| 32 #if defined(OS_WIN) | 32 #if defined(OS_WIN) |
| 33 #include "base/win/pe_image.h" | 33 #include "base/win/pe_image.h" |
| 34 #include "chrome/install_static/install_util.h" | 34 #include "chrome/install_static/install_util.h" |
| 35 #include "components/browser_watcher/features.h" | 35 #include "components/browser_watcher/features.h" |
| 36 #include "components/browser_watcher/stability_data_names.h" | 36 #include "components/browser_watcher/stability_data_names.h" |
| 37 #include "components/browser_watcher/stability_debugging.h" |
| 37 #include "components/browser_watcher/stability_metrics.h" | 38 #include "components/browser_watcher/stability_metrics.h" |
| 38 #include "components/browser_watcher/stability_paths.h" | 39 #include "components/browser_watcher/stability_paths.h" |
| 39 #endif | 40 #endif |
| 40 | 41 |
| 41 #if defined(OS_WIN) | 42 #if defined(OS_WIN) |
| 42 // http://blogs.msdn.com/oldnewthing/archive/2004/10/25/247180.aspx | 43 // http://blogs.msdn.com/oldnewthing/archive/2004/10/25/247180.aspx |
| 43 extern "C" IMAGE_DOS_HEADER __ImageBase; | 44 extern "C" IMAGE_DOS_HEADER __ImageBase; |
| 44 #endif | 45 #endif |
| 45 | 46 |
| 46 namespace chrome { | 47 namespace chrome { |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 browser_watcher::kStabilityDebuggingFeature, | 182 browser_watcher::kStabilityDebuggingFeature, |
| 182 browser_watcher::kInitFlushParam, false); | 183 browser_watcher::kInitFlushParam, false); |
| 183 if (should_flush) | 184 if (should_flush) |
| 184 ::FlushViewOfFile(global_tracker->allocator()->data(), 0U); | 185 ::FlushViewOfFile(global_tracker->allocator()->data(), 0U); |
| 185 | 186 |
| 186 // Store a copy of the system profile in this allocator. There will be some | 187 // Store a copy of the system profile in this allocator. There will be some |
| 187 // delay before this gets populated, perhaps as much as a minute. Because | 188 // delay before this gets populated, perhaps as much as a minute. Because |
| 188 // of this, there is no need to flush it here. | 189 // of this, there is no need to flush it here. |
| 189 metrics::GlobalPersistentSystemProfile::GetInstance() | 190 metrics::GlobalPersistentSystemProfile::GetInstance() |
| 190 ->RegisterPersistentAllocator(global_tracker->allocator()); | 191 ->RegisterPersistentAllocator(global_tracker->allocator()); |
| 192 |
| 193 browser_watcher::RegisterStabilityVEH(); |
| 191 } | 194 } |
| 192 } | 195 } |
| 193 #endif // defined(OS_WIN) | 196 #endif // defined(OS_WIN) |
| 194 | 197 |
| 195 } // namespace | 198 } // namespace |
| 196 | 199 |
| 197 void SetupDesktopFieldTrials() { | 200 void SetupDesktopFieldTrials() { |
| 198 prerender::ConfigurePrerender(); | 201 prerender::ConfigurePrerender(); |
| 199 SetupStunProbeTrial(); | 202 SetupStunProbeTrial(); |
| 200 #if defined(OS_WIN) | 203 #if defined(OS_WIN) |
| 201 SetupStabilityDebugging(); | 204 SetupStabilityDebugging(); |
| 202 base::FeatureList::IsEnabled(features::kModuleDatabase); | 205 base::FeatureList::IsEnabled(features::kModuleDatabase); |
| 203 #endif // defined(OS_WIN) | 206 #endif // defined(OS_WIN) |
| 204 } | 207 } |
| 205 | 208 |
| 206 } // namespace chrome | 209 } // namespace chrome |
| OLD | NEW |