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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2338623004: Add Blink setting to block doc.written scripts on 2g-like networks (Closed)
Patch Set: Update test results after rebase Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/test_runner/test_runner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 74f9a5c4606eccca2c5edbc14cbe57f37680ca00..307a6e8bf6c57d79f990ef0a61bc5f5766ae5db6 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -1380,26 +1380,28 @@ void MaybeAppendBlinkSettingsSwitchForFieldTrial(
// field trial may overwrite another. See Source/core/frame/Settings.in in
// Blink for the list of valid keys.
static const char* const kBlinkSettingsFieldTrials[] = {
- // Keys: backgroundHtmlParserOutstandingTokenLimit
- // backgroundHtmlParserPendingTokenLimit
- "BackgroundHtmlParserTokenLimits",
+ // Keys: backgroundHtmlParserOutstandingTokenLimit
+ // backgroundHtmlParserPendingTokenLimit
+ "BackgroundHtmlParserTokenLimits",
- // Keys: doHtmlPreloadScanning
- "HtmlPreloadScanning",
+ // Keys: doHtmlPreloadScanning
+ "HtmlPreloadScanning",
- // Keys: lowPriorityIframes
- "LowPriorityIFrames",
+ // Keys: lowPriorityIframes
+ "LowPriorityIFrames",
- // Keys: disallowFetchForDocWrittenScriptsInMainFrame
- "DisallowFetchForDocWrittenScriptsInMainFrame",
+ // Keys: disallowFetchForDocWrittenScriptsInMainFrame
+ // disallowFetchForDocWrittenScriptsInMainFrameOnSlowConnections
+ // disallowFetchForDocWrittenScriptsInMainFrameIfEffectively2G
+ "DisallowFetchForDocWrittenScriptsInMainFrame",
- // Keys: parseHTMLOnMainThreadSyncTokenize
- // parseHTMLOnMainThreadCoalesceChunks
- "ParseHTMLOnMainThread",
+ // Keys: parseHTMLOnMainThreadSyncTokenize
+ // parseHTMLOnMainThreadCoalesceChunks
+ "ParseHTMLOnMainThread",
- // Keys: cssExternalScannerNoPreload
- // cssExternalScannerPreload
- "CSSExternalScanner",
+ // Keys: cssExternalScannerNoPreload
+ // cssExternalScannerPreload
+ "CSSExternalScanner",
};
std::vector<std::string> blink_settings;
« no previous file with comments | « no previous file | components/test_runner/test_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698