forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds the browser scheduler command line flags as well as exposing it via chrome://flags. Enabling the feature will place the browser in a forced variations group, allowing it to use task scheduler parameters from there. If the variations group is unavailable, then enabling this will still not enable the browser task scheduler BUG=553459,633389 Review-Url: https://codereview.chromium.org/2227343002 Cr-Commit-Position: refs/heads/master@{#411199}
- Loading branch information
robliao
authored and
Commit bot
committed
Aug 11, 2016
1 parent
a684684
commit 2ce242f
Showing
7 changed files
with
57 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Copyright 2016 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "base/task_scheduler/switches.h" | ||
|
||
namespace switches { | ||
|
||
const char kDisableBrowserTaskScheduler[] = "disable-browser-task-scheduler"; | ||
const char kEnableBrowserTaskScheduler[] = "enable-browser-task-scheduler"; | ||
|
||
} // namespace switches |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Copyright 2016 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef BASE_TASK_SCHEDULER_SWITCHES_H_ | ||
#define BASE_TASK_SCHEDULER_SWITCHES_H_ | ||
|
||
namespace switches { | ||
|
||
extern const char kDisableBrowserTaskScheduler[]; | ||
extern const char kEnableBrowserTaskScheduler[]; | ||
|
||
} // namespace switches | ||
|
||
#endif // BASE_TASK_SCHEDULER_SWITCHES_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters