| 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 1327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1338 static const char* const kBlinkSettingsFieldTrials[] = { | 1338 static const char* const kBlinkSettingsFieldTrials[] = { |
| 1339 // Keys: backgroundHtmlParserOutstandingTokenLimit | 1339 // Keys: backgroundHtmlParserOutstandingTokenLimit |
| 1340 // backgroundHtmlParserPendingTokenLimit | 1340 // backgroundHtmlParserPendingTokenLimit |
| 1341 "BackgroundHtmlParserTokenLimits", | 1341 "BackgroundHtmlParserTokenLimits", |
| 1342 | 1342 |
| 1343 // Keys: doHtmlPreloadScanning | 1343 // Keys: doHtmlPreloadScanning |
| 1344 "HtmlPreloadScanning", | 1344 "HtmlPreloadScanning", |
| 1345 | 1345 |
| 1346 // Keys: lowPriorityIframes | 1346 // Keys: lowPriorityIframes |
| 1347 "LowPriorityIFrames", | 1347 "LowPriorityIFrames", |
| 1348 |
| 1349 // Keys: disallowFetchForDocWrittenScriptsInMainFrame |
| 1350 "DisallowFetchForDocWrittenScriptsInMainFrame" |
| 1348 }; | 1351 }; |
| 1349 | 1352 |
| 1350 std::vector<std::string> blink_settings; | 1353 std::vector<std::string> blink_settings; |
| 1351 for (const char* field_trial_name : kBlinkSettingsFieldTrials) { | 1354 for (const char* field_trial_name : kBlinkSettingsFieldTrials) { |
| 1352 // Each blink-settings field trial should include a forcing_flag group, | 1355 // Each blink-settings field trial should include a forcing_flag group, |
| 1353 // to make sure that clients that specify the blink-settings flag on the | 1356 // to make sure that clients that specify the blink-settings flag on the |
| 1354 // command line are excluded from the experiment groups. To make | 1357 // command line are excluded from the experiment groups. To make |
| 1355 // sure we assign clients that specify this flag to the forcing_flag | 1358 // sure we assign clients that specify this flag to the forcing_flag |
| 1356 // group, we must call GetVariationParams for each field trial first | 1359 // group, we must call GetVariationParams for each field trial first |
| 1357 // (for example, before checking HasSwitch() and returning), since | 1360 // (for example, before checking HasSwitch() and returning), since |
| (...skipping 1614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2972 if (channel <= kMaxDisableEncryptionChannel) { | 2975 if (channel <= kMaxDisableEncryptionChannel) { |
| 2973 static const char* const kWebRtcDevSwitchNames[] = { | 2976 static const char* const kWebRtcDevSwitchNames[] = { |
| 2974 switches::kDisableWebRtcEncryption, | 2977 switches::kDisableWebRtcEncryption, |
| 2975 }; | 2978 }; |
| 2976 to_command_line->CopySwitchesFrom(from_command_line, | 2979 to_command_line->CopySwitchesFrom(from_command_line, |
| 2977 kWebRtcDevSwitchNames, | 2980 kWebRtcDevSwitchNames, |
| 2978 arraysize(kWebRtcDevSwitchNames)); | 2981 arraysize(kWebRtcDevSwitchNames)); |
| 2979 } | 2982 } |
| 2980 } | 2983 } |
| 2981 #endif // defined(ENABLE_WEBRTC) | 2984 #endif // defined(ENABLE_WEBRTC) |
| OLD | NEW |