diff --git a/browser/api/atom_api_protocol.cc b/browser/api/atom_api_protocol.cc index 5094c98e7bd7..abeac812b559 100644 --- a/browser/api/atom_api_protocol.cc +++ b/browser/api/atom_api_protocol.cc @@ -291,7 +291,7 @@ class AdapterProtocolHandler // static v8::Handle Protocol::RegisterProtocol(const v8::Arguments& args) { std::string scheme(*v8::String::Utf8Value(args[0])); - if (g_handlers.find(scheme) != g_handlers.end()) + if (net::URLRequest::IsHandledProtocol(scheme)) return node::ThrowError("The scheme is already registered"); // Store the handler in a map.