Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1214)

Unified Diff: Source/core/loader/CookieJar.cpp

Issue 205323004: Stop calling blink::Platform::current()->cookieJar() in CookieJar.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/CookieJar.cpp
diff --git a/Source/core/loader/CookieJar.cpp b/Source/core/loader/CookieJar.cpp
index d8ad40d1089ab5d6a78c772610f2331db967f16c..6fffb509612f047844fd379c07a8460cf0255fa2 100644
--- a/Source/core/loader/CookieJar.cpp
+++ b/Source/core/loader/CookieJar.cpp
@@ -47,12 +47,7 @@ static blink::WebCookieJar* toCookieJar(const Document* document)
{
if (!document || !document->frame())
return 0;
- blink::WebCookieJar* cookieJar = document->frame()->loader().client()->cookieJar();
- // FIXME: DRT depends on being able to get a cookie jar from Platform rather than
- // FrameLoaderClient. Delete this when DRT is deleted.
- if (!cookieJar)
- cookieJar = blink::Platform::current()->cookieJar();
- return cookieJar;
+ return document->frame()->loader().client()->cookieJar();
}
String cookies(const Document* document, const KURL& url)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698