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

Unified Diff: chrome/browser/profiles/off_the_record_profile_io_data.cc

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/printing/print_job_worker.cc ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/off_the_record_profile_io_data.cc
diff --git a/chrome/browser/profiles/off_the_record_profile_io_data.cc b/chrome/browser/profiles/off_the_record_profile_io_data.cc
index 2777fe058bfadb6f2afb9627dec115b072842251..99aa9e66ecf0d4df778cf1b0016a6fedd8e0b01e 100644
--- a/chrome/browser/profiles/off_the_record_profile_io_data.cc
+++ b/chrome/browser/profiles/off_the_record_profile_io_data.cc
@@ -47,9 +47,9 @@ OffTheRecordProfileIOData::Handle::Handle(Profile* profile)
OffTheRecordProfileIOData::Handle::~Handle() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- if (main_request_context_getter_)
+ if (main_request_context_getter_.get())
main_request_context_getter_->CleanupOnUIThread();
- if (extensions_request_context_getter_)
+ if (extensions_request_context_getter_.get())
extensions_request_context_getter_->CleanupOnUIThread();
// Clean up all isolated app request contexts.
@@ -96,7 +96,7 @@ OffTheRecordProfileIOData::Handle::GetMainRequestContextGetter() const {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
#endif // defined(OS_CHROMEOS)
LazyInitialize();
- if (!main_request_context_getter_) {
+ if (!main_request_context_getter_.get()) {
main_request_context_getter_ =
ChromeURLRequestContextGetter::CreateOffTheRecord(profile_, io_data_);
}
@@ -107,7 +107,7 @@ scoped_refptr<ChromeURLRequestContextGetter>
OffTheRecordProfileIOData::Handle::GetExtensionsRequestContextGetter() const {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
LazyInitialize();
- if (!extensions_request_context_getter_) {
+ if (!extensions_request_context_getter_.get()) {
extensions_request_context_getter_ =
ChromeURLRequestContextGetter::CreateOffTheRecordForExtensions(
profile_, io_data_);
@@ -209,7 +209,8 @@ void OffTheRecordProfileIOData::LazyInitializeInternal(
main_context->set_server_bound_cert_service(server_bound_cert_service);
main_context->set_cookie_store(
- new net::CookieMonster(NULL, profile_params->cookie_monster_delegate));
+ new net::CookieMonster(
+ NULL, profile_params->cookie_monster_delegate.get()));
// All we care about for extensions is the cookie store. For incognito, we
// use a non-persistent cookie store.
« no previous file with comments | « chrome/browser/printing/print_job_worker.cc ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698