| Index: chrome/browser/net/chrome_network_delegate.cc
|
| diff --git a/chrome/browser/net/chrome_network_delegate.cc b/chrome/browser/net/chrome_network_delegate.cc
|
| index 64cbc00c8856a9dc3a6d5ca02d62d5e6c2664fa6..fad14af294e97482e7e8e174ce4600459b0c8e4b 100644
|
| --- a/chrome/browser/net/chrome_network_delegate.cc
|
| +++ b/chrome/browser/net/chrome_network_delegate.cc
|
| @@ -623,7 +623,7 @@ bool ChromeNetworkDelegate::OnCanGetCookies(
|
| const net::URLRequest& request,
|
| const net::CookieList& cookie_list) {
|
| // NULL during tests, or when we're running in the system context.
|
| - if (!cookie_settings_)
|
| + if (!cookie_settings_.get())
|
| return true;
|
|
|
| bool allow = cookie_settings_->IsReadingCookieAllowed(
|
| @@ -648,7 +648,7 @@ bool ChromeNetworkDelegate::OnCanSetCookie(const net::URLRequest& request,
|
| const std::string& cookie_line,
|
| net::CookieOptions* options) {
|
| // NULL during tests, or when we're running in the system context.
|
| - if (!cookie_settings_)
|
| + if (!cookie_settings_.get())
|
| return true;
|
|
|
| bool allow = cookie_settings_->IsSettingCookieAllowed(
|
| @@ -738,7 +738,7 @@ bool ChromeNetworkDelegate::OnCanEnablePrivacyMode(
|
| const GURL& url,
|
| const GURL& first_party_for_cookies) const {
|
| // NULL during tests, or when we're running in the system context.
|
| - if (!cookie_settings_)
|
| + if (!cookie_settings_.get())
|
| return false;
|
|
|
| bool reading_cookie_allowed = cookie_settings_->IsReadingCookieAllowed(
|
|
|