Index: content/browser/loader/power_save_block_resource_throttle.cc |
diff --git a/content/browser/loader/power_save_block_resource_throttle.cc b/content/browser/loader/power_save_block_resource_throttle.cc |
index 9ef3e2bafd5b07b0e8c78969c899307d7c8d5cf2..47ce12b0e8bfc8e90aa895414f5e263482a4d916 100644 |
--- a/content/browser/loader/power_save_block_resource_throttle.cc |
+++ b/content/browser/loader/power_save_block_resource_throttle.cc |
@@ -4,7 +4,8 @@ |
#include "content/browser/loader/power_save_block_resource_throttle.h" |
-#include "content/public/browser/power_save_blocker_factory.h" |
+#include "content/public/browser/browser_thread.h" |
+#include "device/power_save_blocker/power_save_blocker.h" |
namespace content { |
@@ -40,9 +41,11 @@ const char* PowerSaveBlockResourceThrottle::GetNameForLogging() const { |
} |
void PowerSaveBlockResourceThrottle::ActivatePowerSaveBlocker() { |
- power_save_blocker_ = CreatePowerSaveBlocker( |
- PowerSaveBlocker::kPowerSaveBlockPreventAppSuspension, |
- PowerSaveBlocker::kReasonOther, "Uploading data to " + host_); |
+ power_save_blocker_ = device::PowerSaveBlocker::CreateWithTaskRunners( |
+ device::PowerSaveBlocker::kPowerSaveBlockPreventAppSuspension, |
+ device::PowerSaveBlocker::kReasonOther, "Uploading data to " + host_, |
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), |
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE)); |
} |
} // namespace content |