| 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_content_browser_client.h" | 5 #include "chrome/browser/chrome_content_browser_client.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1179 base::CommandLine* command_line) { | 1179 base::CommandLine* command_line) { |
| 1180 // List of field trials that modify the blink-settings command line flag. No | 1180 // List of field trials that modify the blink-settings command line flag. No |
| 1181 // two field trials in the list should specify the same keys, otherwise one | 1181 // two field trials in the list should specify the same keys, otherwise one |
| 1182 // field trial may overwrite another. See Source/core/frame/Settings.in in | 1182 // field trial may overwrite another. See Source/core/frame/Settings.in in |
| 1183 // Blink for the list of valid keys. | 1183 // Blink for the list of valid keys. |
| 1184 static const char* const kBlinkSettingsFieldTrials[] = { | 1184 static const char* const kBlinkSettingsFieldTrials[] = { |
| 1185 // Keys: backgroundHtmlParserOutstandingTokenLimit | 1185 // Keys: backgroundHtmlParserOutstandingTokenLimit |
| 1186 // backgroundHtmlParserPendingTokenLimit | 1186 // backgroundHtmlParserPendingTokenLimit |
| 1187 "BackgroundHtmlParserTokenLimits", | 1187 "BackgroundHtmlParserTokenLimits", |
| 1188 | 1188 |
| 1189 // Keys: doHtmlPreloadScanning |
| 1190 "HtmlPreloadScanning", |
| 1191 |
| 1189 // Keys: lowPriorityIframes | 1192 // Keys: lowPriorityIframes |
| 1190 "LowPriorityIFrames", | 1193 "LowPriorityIFrames", |
| 1191 }; | 1194 }; |
| 1192 | 1195 |
| 1193 std::vector<std::string> blink_settings; | 1196 std::vector<std::string> blink_settings; |
| 1194 for (const char* field_trial_name : kBlinkSettingsFieldTrials) { | 1197 for (const char* field_trial_name : kBlinkSettingsFieldTrials) { |
| 1195 // Each blink-settings field trial should include a forcing_flag group, | 1198 // Each blink-settings field trial should include a forcing_flag group, |
| 1196 // to make sure that clients that specify the blink-settings flag on the | 1199 // to make sure that clients that specify the blink-settings flag on the |
| 1197 // command line are excluded from the experiment groups. To make | 1200 // command line are excluded from the experiment groups. To make |
| 1198 // sure we assign clients that specify this flag to the forcing_flag | 1201 // sure we assign clients that specify this flag to the forcing_flag |
| (...skipping 1298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2497 switches::kDisableWebRtcEncryption, | 2500 switches::kDisableWebRtcEncryption, |
| 2498 }; | 2501 }; |
| 2499 to_command_line->CopySwitchesFrom(from_command_line, | 2502 to_command_line->CopySwitchesFrom(from_command_line, |
| 2500 kWebRtcDevSwitchNames, | 2503 kWebRtcDevSwitchNames, |
| 2501 arraysize(kWebRtcDevSwitchNames)); | 2504 arraysize(kWebRtcDevSwitchNames)); |
| 2502 } | 2505 } |
| 2503 } | 2506 } |
| 2504 #endif // defined(ENABLE_WEBRTC) | 2507 #endif // defined(ENABLE_WEBRTC) |
| 2505 | 2508 |
| 2506 } // namespace chrome | 2509 } // namespace chrome |
| OLD | NEW |