Index: content/shell/shell_browser_context.cc |
diff --git a/content/shell/shell_browser_context.cc b/content/shell/shell_browser_context.cc |
index f2a9bdd11720670b1735719bcdb57f4bf27fa895..b3228a0670954233f9de1a7f93a4ca18b3dac61d 100644 |
--- a/content/shell/shell_browser_context.cc |
+++ b/content/shell/shell_browser_context.cc |
@@ -113,7 +113,7 @@ bool ShellBrowserContext::IsOffTheRecord() const { |
DownloadManagerDelegate* ShellBrowserContext::GetDownloadManagerDelegate() { |
DownloadManager* manager = BrowserContext::GetDownloadManager(this); |
- if (!download_manager_delegate_) { |
+ if (!download_manager_delegate_.get()) { |
download_manager_delegate_ = new ShellDownloadManagerDelegate(); |
download_manager_delegate_->SetDownloadManager(manager); |
CommandLine* cmd_line = CommandLine::ForCurrentProcess(); |
@@ -132,7 +132,7 @@ net::URLRequestContextGetter* ShellBrowserContext::GetRequestContext() { |
net::URLRequestContextGetter* ShellBrowserContext::CreateRequestContext( |
ProtocolHandlerMap* protocol_handlers) { |
- DCHECK(!url_request_getter_); |
+ DCHECK(!url_request_getter_.get()); |
url_request_getter_ = new ShellURLRequestContextGetter( |
ignore_certificate_errors_, |
GetPath(), |