Commit b210522c authored by yoav@yoav.ws's avatar yoav@yoav.ws

Cleanup Blink side preconnect calls

While adding preconnect, we added a new API call that public that was destined to replace the previous one. This CL deletes calls to the previous API call.

BUG=

Review URL: https://codereview.chromium.org/1321193004

git-svn-id: svn://svn.chromium.org/blink/trunk@201878 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 24f26a93
......@@ -42,11 +42,7 @@ void preconnect(const KURL& url, const CrossOriginAttributeValue crossOrigin)
{
if (WebPrescientNetworking* prescientNetworking = Platform::current()->prescientNetworking()) {
bool allowCredentials = (crossOrigin != CrossOriginAttributeAnonymous);
// TODO(yoav): Call only the crossorigin interface once everything is hooked up.
if (crossOrigin == CrossOriginAttributeNotSet)
prescientNetworking->preconnect(url);
else
prescientNetworking->preconnect(url, allowCredentials);
prescientNetworking->preconnect(url, allowCredentials);
}
}
......
......@@ -45,8 +45,6 @@ public:
// the host resolution latency.
virtual void prefetchDNS(const WebString& hostname) { }
virtual void preconnect(const WebURL& url) { }
virtual void preconnect(const WebURL& url, const bool allowCredentials) { }
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment