Skip to content

Commit

Permalink
Introduce chrome://flags/#enable-off-main-thread-fetch
Browse files Browse the repository at this point in the history
BUG=443374

Review-Url: https://codereview.chromium.org/2897543002
Cr-Commit-Position: refs/heads/master@{#473097}
  • Loading branch information
horo-t authored and Commit bot committed May 19, 2017
1 parent c6d10d6 commit 201d494
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chrome/browser/about_flags.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2769,6 +2769,10 @@ const FeatureEntry kFeatureEntries[] = {
kSpeculativeResourcePrefetchingFeatureVariations,
"SpeculativeResourcePrefetchingValidation")},

{"enable-off-main-thread-fetch", flag_descriptions::kOffMainThreadFetchName,
flag_descriptions::kOffMainThreadFetchDescription, kOsAll,
FEATURE_VALUE_TYPE(features::kOffMainThreadFetch)},

#if defined(OS_MACOSX)
{"tab-strip-keyboard-focus", flag_descriptions::kTabStripKeyboardFocusName,
flag_descriptions::kTabStripKeyboardFocusDescription, kOsMac,
Expand Down
6 changes: 6 additions & 0 deletions chrome/browser/flag_descriptions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ const char kSpeculativePrefetchDescription[] =
R"*("Learning" means that only the database construction is enabled, )*"
R"*("Prefetching" that learning and prefetching are enabled.)*";

const char kOffMainThreadFetchName[] = "Off-main-thread fetch for Web Workers";

const char kOffMainThreadFetchDescription[] =
"If enabled, the resource fetches from worker threads will not be blocked "
"by the busy main thread.";

// Force Tablet Mode

const char kForceTabletModeName[] = "Force Tablet Mode";
Expand Down
3 changes: 3 additions & 0 deletions chrome/browser/flag_descriptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,9 @@ extern const char kOfflineAutoReloadDescription[];
extern const char kOfflineAutoReloadVisibleOnlyName[];
extern const char kOfflineAutoReloadVisibleOnlyDescription[];

extern const char kOffMainThreadFetchName[];
extern const char kOffMainThreadFetchDescription[];

extern const char kOmniboxDisplayTitleForCurrentUrlName[];
extern const char kOmniboxDisplayTitleForCurrentUrlDescription[];

Expand Down
2 changes: 2 additions & 0 deletions tools/metrics/histograms/enums.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21846,6 +21846,7 @@ from previous Chrome versions.
<int value="203776499" label="enable-virtual-keyboard-overscroll"/>
<int value="223662457" label="BackgroundLoadingForDownloads:enabled"/>
<int value="244697230" label="enable-theme-color-in-tabbed-mode"/>
<int value="259021228" label="OffMainThreadFetch:disabled"/>
<int value="262382944" label="GuestViewCrossProcessFrames:disabled"/>
<int value="266702296" label="disable-plugin-power-saver"/>
<int value="270267831" label="enable-scripts-require-action"/>
Expand Down Expand Up @@ -22325,6 +22326,7 @@ from previous Chrome versions.
<int value="1951466218" label="enable-data-reduction-proxy-lite-page"/>
<int value="1955677113" label="trace-export-events-to-etw"/>
<int value="1958387645" label="ScanCardsInWebPayments:enabled"/>
<int value="1959148757" label="OffMainThreadFetch:enabled"/>
<int value="1960169775" label="NewPhotoPicker:disabled"/>
<int value="1961425320" label="force-qtkit"/>
<int value="1964816410" label="AndroidPayIntegrationV2:enabled"/>
Expand Down

0 comments on commit 201d494

Please sign in to comment.