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

Side by Side Diff: content/browser/power_save_blocker_factory.cc

Issue 1991593002: Pass SequencedTaskRunner to PowerSaveBlocker for ui/file operations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@device-power-save-blocker
Patch Set: . 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/public/browser/power_save_blocker_factory.h"
6
7 #include "content/public/browser/browser_thread.h"
8
9 namespace content {
10
11 std::unique_ptr<PowerSaveBlocker> CreatePowerSaveBlocker(
12 PowerSaveBlocker::PowerSaveBlockerType type,
13 PowerSaveBlocker::Reason reason,
14 const std::string& description) {
15 return PowerSaveBlocker::CreateWithTaskRunners(
16 type, reason, description,
17 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI),
18 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE));
hashimoto 2016/05/24 06:02:42 How about using BrowserThread::GetBlockingPool()->
scottmg 2016/05/24 17:18:03 Done.
19 }
20
21 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698