| Index: content/browser/frame_host/render_frame_message_filter.cc
|
| diff --git a/content/browser/frame_host/render_frame_message_filter.cc b/content/browser/frame_host/render_frame_message_filter.cc
|
| index f14f8eba6a99ea24d8d53b9d77946ff7eb9b7381..66bba430b3553db7ec8f627710914a58bf417a8d 100644
|
| --- a/content/browser/frame_host/render_frame_message_filter.cc
|
| +++ b/content/browser/frame_host/render_frame_message_filter.cc
|
| @@ -421,7 +421,8 @@ void RenderFrameMessageFilter::CheckPolicyForCookies(
|
| net::URLRequestContext* context = GetRequestContextForURL(url);
|
| // Check the policy for get cookies, and pass cookie_list to the
|
| // TabSpecificContentSetting for logging purpose.
|
| - if (GetContentClient()->browser()->AllowGetCookie(
|
| + if (context &&
|
| + GetContentClient()->browser()->AllowGetCookie(
|
| url, first_party_for_cookies, cookie_list, resource_context_,
|
| render_process_id_, render_frame_id)) {
|
| // Gets the cookies from cookie store if allowed.
|
|
|