| Index: chrome/browser/prerender/prerender_contents.cc
|
| diff --git a/chrome/browser/prerender/prerender_contents.cc b/chrome/browser/prerender/prerender_contents.cc
|
| index f533a2b02b92035af83821c71dc41e3d0b96970a..8fa33154e3bd9c25c03ed32d4a3017bcdc8852da 100644
|
| --- a/chrome/browser/prerender/prerender_contents.cc
|
| +++ b/chrome/browser/prerender/prerender_contents.cc
|
| @@ -70,12 +70,7 @@
|
| };
|
|
|
| void ResumeThrottles(
|
| - std::vector<base::WeakPtr<PrerenderResourceThrottle>> throttles,
|
| - std::vector<base::WeakPtr<PrerenderResourceThrottle>> idle_resources) {
|
| - for (auto resource : idle_resources) {
|
| - if (resource)
|
| - resource->ResetResourcePriority();
|
| - }
|
| + std::vector<base::WeakPtr<PrerenderResourceThrottle> > throttles) {
|
| for (size_t i = 0; i < throttles.size(); i++) {
|
| if (throttles[i])
|
| throttles[i]->ResumeHandler();
|
| @@ -762,10 +757,10 @@
|
| NotifyPrerenderStop();
|
|
|
| BrowserThread::PostTask(
|
| - BrowserThread::IO, FROM_HERE,
|
| - base::Bind(&ResumeThrottles, resource_throttles_, idle_resources_));
|
| + BrowserThread::IO,
|
| + FROM_HERE,
|
| + base::Bind(&ResumeThrottles, resource_throttles_));
|
| resource_throttles_.clear();
|
| - idle_resources_.clear();
|
| }
|
|
|
| void PrerenderContents::CancelPrerenderForPrinting() {
|
| @@ -783,11 +778,6 @@
|
| resource_throttles_.push_back(throttle);
|
| }
|
|
|
| -void PrerenderContents::AddIdleResource(
|
| - const base::WeakPtr<PrerenderResourceThrottle>& throttle) {
|
| - idle_resources_.push_back(throttle);
|
| -}
|
| -
|
| void PrerenderContents::AddNetworkBytes(int64_t bytes) {
|
| network_bytes_ += bytes;
|
| for (Observer& observer : observer_list_)
|
|
|