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

Unified Diff: content/browser/power_save_blocker_impl.cc

Issue 2012853003: Reland of Pass SequencedTaskRunner to PowerSaveBlocker for ui/file ops (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: SingleThreadTaskRunner for _x11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/power_save_blocker_impl.h ('k') | content/browser/power_save_blocker_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/power_save_blocker_impl.cc
diff --git a/content/browser/power_save_blocker_impl.cc b/content/browser/power_save_blocker_impl.cc
index 52cb6a1dde11c4fbb9eb934dff6637e9640b5930..70f536cc1259f0b0b8654445720dbe58e66e5037 100644
--- a/content/browser/power_save_blocker_impl.cc
+++ b/content/browser/power_save_blocker_impl.cc
@@ -2,20 +2,23 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "build/build_config.h"
#include "content/browser/power_save_blocker_impl.h"
+#include "build/build_config.h"
+
namespace content {
PowerSaveBlocker::~PowerSaveBlocker() {}
// static
-std::unique_ptr<PowerSaveBlocker> PowerSaveBlocker::Create(
- PowerSaveBlockerType type,
- Reason reason,
- const std::string& description) {
- return std::unique_ptr<PowerSaveBlocker>(
- new PowerSaveBlockerImpl(type, reason, description));
+std::unique_ptr<PowerSaveBlocker> PowerSaveBlocker::CreateWithTaskRunners(
+ PowerSaveBlocker::PowerSaveBlockerType type,
+ PowerSaveBlocker::Reason reason,
+ const std::string& description,
+ scoped_refptr<base::SequencedTaskRunner> ui_task_runner,
+ scoped_refptr<base::SingleThreadTaskRunner> blocking_task_runner) {
+ return std::unique_ptr<PowerSaveBlocker>(new PowerSaveBlockerImpl(
+ type, reason, description, ui_task_runner, blocking_task_runner));
}
} // namespace content
« no previous file with comments | « content/browser/power_save_blocker_impl.h ('k') | content/browser/power_save_blocker_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698