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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 2072403002: Remove content/browser/power_save_blocker_factory.* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gyp Created 4 years, 6 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
Index: content/browser/renderer_host/render_widget_host_impl.cc
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index b9cc76e82379bea6d7cb4410a7b99751e10a359b..b06622d0b0fdc4e1baebf947063c91623b2f36bd 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -82,7 +82,6 @@
#include "ui/snapshot/snapshot.h"
#if defined(OS_MACOSX)
-#include "content/browser/power_save_blocker_factory.h"
#include "device/power_save_blocker/power_save_blocker.h"
#include "ui/accelerated_widget_mac/window_resize_helper_mac.h"
#endif
@@ -1295,9 +1294,11 @@ void RenderWidgetHostImpl::GetSnapshotFromBrowser(
if (pending_browser_snapshots_.empty()) {
DCHECK(!power_save_blocker_);
power_save_blocker_.reset(
- CreatePowerSaveBlocker(
+ device::PowerSaveBlocker::CreateWithTaskRunners(
device::PowerSaveBlocker::kPowerSaveBlockPreventDisplaySleep,
- device::PowerSaveBlocker::kReasonOther, "GetSnapshot")
+ device::PowerSaveBlocker::kReasonOther, "GetSnapshot",
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI),
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE))
.release());
}
#endif
« no previous file with comments | « content/browser/power_save_blocker_factory.cc ('k') | content/browser/wake_lock/wake_lock_service_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698