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. |