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

Unified Diff: chrome/browser/shell_integration.cc

Issue 2916943002: Use SequencedTaskRunner where now possible after making Timer sequence-friendly. (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/shell_integration.cc
diff --git a/chrome/browser/shell_integration.cc b/chrome/browser/shell_integration.cc
index e18e93ead9fa247dd6c4fb8842a8c85098ee869f..61a3bbfb5693669ef6e306cf3f961d779a84aeb9 100644
--- a/chrome/browser/shell_integration.cc
+++ b/chrome/browser/shell_integration.cc
@@ -45,18 +45,6 @@ namespace {
const struct AppModeInfo* gAppModeInfo = nullptr;
-scoped_refptr<base::SequencedTaskRunner>
-CreateTaskRunnerForDefaultWebClientWorker() {
-#if defined(OS_WIN)
- if (base::win::GetVersion() >= base::win::VERSION_WIN10)
- // TODO(pmonette): Windows 10's implementation uses a base::Timer which
- // currently still requires a SingleThreadTaskRunner. Change this to a
- // SequencedTaskRunner when crbug.com/552633 is fixed.
- return base::CreateSingleThreadTaskRunnerWithTraits({base::MayBlock()});
-#endif // defined(OS_WIN)
- return base::CreateSequencedTaskRunnerWithTraits({base::MayBlock()});
-}
-
} // namespace
bool CanSetAsDefaultBrowser() {
@@ -194,7 +182,7 @@ DefaultWebClientWorker::GetTaskRunner() {
if (!task_runner) {
task_runner = new scoped_refptr<base::SequencedTaskRunner>(
- CreateTaskRunnerForDefaultWebClientWorker());
+ base::CreateSequencedTaskRunnerWithTraits({base::MayBlock()}));
}
return *task_runner;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698