fix: use url::AddCORSEnabledScheme

This commit is contained in:
Shelley Vohr 2018-10-26 17:31:56 -07:00 committed by deepak1556
parent 1523a82bab
commit c51fef1568

View file

@ -29,6 +29,7 @@
#include "third_party/blink/public/web/web_script_source.h"
#include "third_party/blink/public/web/web_view.h"
#include "third_party/blink/renderer/platform/weborigin/scheme_registry.h"
#include "url/url_util.h"
#include "atom/common/node_includes.h"
@ -276,9 +277,7 @@ void WebFrame::RegisterURLSchemeAsPrivileged(const std::string& scheme,
privileged_scheme);
}
if (corsEnabled) {
// FIXME: blink::SchemeRegistry::RegisterURLSchemeAsCORSEnabled
// is removed with C70
// https://chromium-review.googlesource.com/c/chromium/src/+/1157364
url::AddCORSEnabledScheme(scheme.c_str());
}
}