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

Side by Side Diff: content/browser/loader/resource_dispatcher_host_unittest.cc

Issue 14081010: Cleanup: Remove unnecessary ".get()" from scoped_ptrs<>. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix some gtk issues Created 7 years, 8 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 | Annotate | Revision Log
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 <vector> 5 #include <vector>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 490
491 virtual void RequestBeginning( 491 virtual void RequestBeginning(
492 net::URLRequest* request, 492 net::URLRequest* request,
493 ResourceContext* resource_context, 493 ResourceContext* resource_context,
494 appcache::AppCacheService* appcache_service, 494 appcache::AppCacheService* appcache_service,
495 ResourceType::Type resource_type, 495 ResourceType::Type resource_type,
496 int child_id, 496 int child_id,
497 int route_id, 497 int route_id,
498 bool is_continuation_of_transferred_request, 498 bool is_continuation_of_transferred_request,
499 ScopedVector<ResourceThrottle>* throttles) OVERRIDE { 499 ScopedVector<ResourceThrottle>* throttles) OVERRIDE {
500 if (user_data_.get()) { 500 if (user_data_) {
501 const void* key = user_data_.get(); 501 const void* key = user_data_.get();
502 request->SetUserData(key, user_data_.release()); 502 request->SetUserData(key, user_data_.release());
503 } 503 }
504 504
505 if (flags_ != NONE) { 505 if (flags_ != NONE) {
506 throttles->push_back(new GenericResourceThrottle( 506 throttles->push_back(new GenericResourceThrottle(
507 flags_, error_code_for_cancellation_)); 507 flags_, error_code_for_cancellation_));
508 if (create_two_throttles_) 508 if (create_two_throttles_)
509 throttles->push_back(new GenericResourceThrottle( 509 throttles->push_back(new GenericResourceThrottle(
510 flags_, error_code_for_cancellation_)); 510 flags_, error_code_for_cancellation_));
(...skipping 1442 matching lines...) Expand 10 before | Expand all | Expand 10 after
1953 } 1953 }
1954 1954
1955 MessageLoop::current()->RunUntilIdle(); 1955 MessageLoop::current()->RunUntilIdle();
1956 1956
1957 msgs.clear(); 1957 msgs.clear();
1958 accum_.GetClassifiedMessages(&msgs); 1958 accum_.GetClassifiedMessages(&msgs);
1959 } 1959 }
1960 } 1960 }
1961 1961
1962 } // namespace content 1962 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/resource_dispatcher_host_impl.cc ('k') | content/browser/media/media_internals_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698