Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
| OLD | NEW |