| 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 #include <map> | 7 #include <map> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 // Track code activities (such as posting task, blocking on locks, and | 99 // Track code activities (such as posting task, blocking on locks, and |
| 100 // joining threads) that can cause hanging threads and general instability | 100 // joining threads) that can cause hanging threads and general instability |
| 101 base::debug::GlobalActivityTracker::CreateWithFile( | 101 base::debug::GlobalActivityTracker::CreateWithFile( |
| 102 stability_file, kMemorySize, kAllocatorId, | 102 stability_file, kMemorySize, kAllocatorId, |
| 103 browser_watcher::kStabilityDebuggingFeature.name, kStackDepth); | 103 browser_watcher::kStabilityDebuggingFeature.name, kStackDepth); |
| 104 } | 104 } |
| 105 #endif // defined(OS_WIN) | 105 #endif // defined(OS_WIN) |
| 106 | 106 |
| 107 } // namespace | 107 } // namespace |
| 108 | 108 |
| 109 void SetupDesktopFieldTrials(const base::CommandLine& parsed_command_line) { | 109 void SetupDesktopFieldTrials() { |
| 110 prerender::ConfigurePrerender(parsed_command_line); | 110 prerender::ConfigurePrerender(); |
| 111 SetupStunProbeTrial(); | 111 SetupStunProbeTrial(); |
| 112 #if defined(OS_WIN) | 112 #if defined(OS_WIN) |
| 113 SetupStabilityDebugging(); | 113 SetupStabilityDebugging(); |
| 114 #endif // defined(OS_WIN) | 114 #endif // defined(OS_WIN) |
| 115 } | 115 } |
| 116 | 116 |
| 117 } // namespace chrome | 117 } // namespace chrome |
| OLD | NEW |