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

Unified Diff: content/browser/loader/resource_dispatcher_host_impl.cc

Issue 1546253002: Include the host in PowerSaveBlockResourceThrottle. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: const Created 5 years 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/loader/power_save_block_resource_throttle.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/resource_dispatcher_host_impl.cc
diff --git a/content/browser/loader/resource_dispatcher_host_impl.cc b/content/browser/loader/resource_dispatcher_host_impl.cc
index f1d97ab6a10810a7bcea789859a8725f51c804df..63d145296c2d34858e228b6e802334d6dc33b327 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.cc
+++ b/content/browser/loader/resource_dispatcher_host_impl.cc
@@ -1594,7 +1594,8 @@ scoped_ptr<ResourceHandler> ResourceDispatcherHostImpl::AddStandardHandlers(
if (request->has_upload()) {
// Block power save while uploading data.
- throttles.push_back(new PowerSaveBlockResourceThrottle());
+ throttles.push_back(
+ new PowerSaveBlockResourceThrottle(request->url().host()));
}
// TODO(ricea): Stop looking this up so much.
« no previous file with comments | « content/browser/loader/power_save_block_resource_throttle.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698