Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(368)

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 1976463003: Preload scan external CSS for @import (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: actually include crasher fix Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1325 matching lines...) Expand 10 before | Expand all | Expand 10 after
1336 // backgroundHtmlParserPendingTokenLimit 1336 // backgroundHtmlParserPendingTokenLimit
1337 "BackgroundHtmlParserTokenLimits", 1337 "BackgroundHtmlParserTokenLimits",
1338 1338
1339 // Keys: doHtmlPreloadScanning 1339 // Keys: doHtmlPreloadScanning
1340 "HtmlPreloadScanning", 1340 "HtmlPreloadScanning",
1341 1341
1342 // Keys: lowPriorityIframes 1342 // Keys: lowPriorityIframes
1343 "LowPriorityIFrames", 1343 "LowPriorityIFrames",
1344 1344
1345 // Keys: disallowFetchForDocWrittenScriptsInMainFrame 1345 // Keys: disallowFetchForDocWrittenScriptsInMainFrame
1346 "DisallowFetchForDocWrittenScriptsInMainFrame" 1346 "DisallowFetchForDocWrittenScriptsInMainFrame",
1347
1348 // Keys: cssExternalScannerNoPreload
1349 // cssExternalScannerPreload
1350 "CSSExternalScanner",
1347 }; 1351 };
1348 1352
1349 std::vector<std::string> blink_settings; 1353 std::vector<std::string> blink_settings;
1350 for (const char* field_trial_name : kBlinkSettingsFieldTrials) { 1354 for (const char* field_trial_name : kBlinkSettingsFieldTrials) {
1351 // Each blink-settings field trial should include a forcing_flag group, 1355 // Each blink-settings field trial should include a forcing_flag group,
1352 // 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
1353 // command line are excluded from the experiment groups. To make 1357 // command line are excluded from the experiment groups. To make
1354 // 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
1355 // group, we must call GetVariationParams for each field trial first 1359 // group, we must call GetVariationParams for each field trial first
1356 // (for example, before checking HasSwitch() and returning), since 1360 // (for example, before checking HasSwitch() and returning), since
(...skipping 1630 matching lines...) Expand 10 before | Expand all | Expand 10 after
2987 if (channel <= kMaxDisableEncryptionChannel) { 2991 if (channel <= kMaxDisableEncryptionChannel) {
2988 static const char* const kWebRtcDevSwitchNames[] = { 2992 static const char* const kWebRtcDevSwitchNames[] = {
2989 switches::kDisableWebRtcEncryption, 2993 switches::kDisableWebRtcEncryption,
2990 }; 2994 };
2991 to_command_line->CopySwitchesFrom(from_command_line, 2995 to_command_line->CopySwitchesFrom(from_command_line,
2992 kWebRtcDevSwitchNames, 2996 kWebRtcDevSwitchNames,
2993 arraysize(kWebRtcDevSwitchNames)); 2997 arraysize(kWebRtcDevSwitchNames));
2994 } 2998 }
2995 } 2999 }
2996 #endif // defined(ENABLE_WEBRTC) 3000 #endif // defined(ENABLE_WEBRTC)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698