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

Side by Side Diff: chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc

Issue 1156373011: Substituting ScopedVector push_back(ptr.release()) with push_back(ptr.Pass()) in chrome/bro… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate. h" 5 #include "chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate. h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/base64.h" 10 #include "base/base64.h"
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 throttles->push_back(throttle); 567 throttles->push_back(throttle);
568 } 568 }
569 #endif 569 #endif
570 570
571 #if defined(ENABLE_DATA_REDUCTION_PROXY_DEBUGGING) 571 #if defined(ENABLE_DATA_REDUCTION_PROXY_DEBUGGING)
572 scoped_ptr<content::ResourceThrottle> data_reduction_proxy_throttle = 572 scoped_ptr<content::ResourceThrottle> data_reduction_proxy_throttle =
573 data_reduction_proxy::DataReductionProxyDebugResourceThrottle:: 573 data_reduction_proxy::DataReductionProxyDebugResourceThrottle::
574 MaybeCreate( 574 MaybeCreate(
575 request, resource_type, io_data->data_reduction_proxy_io_data()); 575 request, resource_type, io_data->data_reduction_proxy_io_data());
576 if (data_reduction_proxy_throttle) 576 if (data_reduction_proxy_throttle)
577 throttles->push_back(data_reduction_proxy_throttle.release()); 577 throttles->push_back(data_reduction_proxy_throttle.Pass());
578 #endif 578 #endif
579 579
580 #if defined(ENABLE_SUPERVISED_USERS) 580 #if defined(ENABLE_SUPERVISED_USERS)
581 bool is_subresource_request = 581 bool is_subresource_request =
582 resource_type != content::RESOURCE_TYPE_MAIN_FRAME; 582 resource_type != content::RESOURCE_TYPE_MAIN_FRAME;
583 throttles->push_back(new SupervisedUserResourceThrottle( 583 throttles->push_back(new SupervisedUserResourceThrottle(
584 request, !is_subresource_request, 584 request, !is_subresource_request,
585 io_data->supervised_user_url_filter())); 585 io_data->supervised_user_url_filter()));
586 #endif 586 #endif
587 587
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 url_request->GetTotalReceivedBytes())); 770 url_request->GetTotalReceivedBytes()));
771 } 771 }
772 } 772 }
773 773
774 // static 774 // static
775 void ChromeResourceDispatcherHostDelegate:: 775 void ChromeResourceDispatcherHostDelegate::
776 SetExternalProtocolHandlerDelegateForTesting( 776 SetExternalProtocolHandlerDelegateForTesting(
777 ExternalProtocolHandler::Delegate* delegate) { 777 ExternalProtocolHandler::Delegate* delegate) {
778 g_external_protocol_handler_delegate = delegate; 778 g_external_protocol_handler_delegate = delegate;
779 } 779 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698