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

Side by Side Diff: chrome/browser/profiles/off_the_record_profile_io_data.cc

Issue 509583002: Remove implicit conversions from scoped_refptr to T* in chrome/browser/profiles/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | chrome/browser/profiles/profile_browsertest.cc » ('j') | 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/profiles/off_the_record_profile_io_data.h" 5 #include "chrome/browser/profiles/off_the_record_profile_io_data.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/prefs/pref_service.h" 10 #include "base/prefs/pref_service.h"
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 175
176 scoped_ptr<ProfileIOData::ChromeURLRequestContextGetterVector> 176 scoped_ptr<ProfileIOData::ChromeURLRequestContextGetterVector>
177 OffTheRecordProfileIOData::Handle::GetAllContextGetters() { 177 OffTheRecordProfileIOData::Handle::GetAllContextGetters() {
178 scoped_ptr<ChromeURLRequestContextGetterVector> context_getters( 178 scoped_ptr<ChromeURLRequestContextGetterVector> context_getters(
179 new ChromeURLRequestContextGetterVector()); 179 new ChromeURLRequestContextGetterVector());
180 ChromeURLRequestContextGetterMap::iterator iter = 180 ChromeURLRequestContextGetterMap::iterator iter =
181 app_request_context_getter_map_.begin(); 181 app_request_context_getter_map_.begin();
182 for (; iter != app_request_context_getter_map_.end(); ++iter) 182 for (; iter != app_request_context_getter_map_.end(); ++iter)
183 context_getters->push_back(iter->second); 183 context_getters->push_back(iter->second);
184 184
185 if (extensions_request_context_getter_) 185 if (extensions_request_context_getter_.get())
186 context_getters->push_back(extensions_request_context_getter_); 186 context_getters->push_back(extensions_request_context_getter_);
187 187
188 if (main_request_context_getter_) 188 if (main_request_context_getter_.get())
189 context_getters->push_back(main_request_context_getter_); 189 context_getters->push_back(main_request_context_getter_);
190 190
191 return context_getters.Pass(); 191 return context_getters.Pass();
192 } 192 }
193 193
194 OffTheRecordProfileIOData::OffTheRecordProfileIOData( 194 OffTheRecordProfileIOData::OffTheRecordProfileIOData(
195 Profile::ProfileType profile_type) 195 Profile::ProfileType profile_type)
196 : ProfileIOData(profile_type) {} 196 : ProfileIOData(profile_type) {}
197 197
198 OffTheRecordProfileIOData::~OffTheRecordProfileIOData() { 198 OffTheRecordProfileIOData::~OffTheRecordProfileIOData() {
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 return app_request_context; 417 return app_request_context;
418 } 418 }
419 419
420 net::URLRequestContext* 420 net::URLRequestContext*
421 OffTheRecordProfileIOData::AcquireIsolatedMediaRequestContext( 421 OffTheRecordProfileIOData::AcquireIsolatedMediaRequestContext(
422 net::URLRequestContext* app_context, 422 net::URLRequestContext* app_context,
423 const StoragePartitionDescriptor& partition_descriptor) const { 423 const StoragePartitionDescriptor& partition_descriptor) const {
424 NOTREACHED(); 424 NOTREACHED();
425 return NULL; 425 return NULL;
426 } 426 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698