Index: chrome/browser/renderer_host/resource_message_filter.cc |
=================================================================== |
--- chrome/browser/renderer_host/resource_message_filter.cc (revision 37613) |
+++ chrome/browser/renderer_host/resource_message_filter.cc (working copy) |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2009 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -545,9 +545,7 @@ |
const GURL& url, |
const GURL& first_party_for_cookies, |
bool* enabled) { |
- URLRequestContext* context = GetRequestContextForURL(url); |
- *enabled = |
- context->cookie_policy()->type() != net::CookiePolicy::BLOCK_ALL_COOKIES; |
+ *enabled = GetRequestContextForURL(url)->AreCookiesEnabled(); |
} |
#if defined(OS_WIN) // This hack is Windows-specific. |