Index: content/renderer/render_thread_impl.cc |
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc |
index 71ef6b81e0c33619c86b92118cfdd8fd662f7a34..bd856af80aceaa7e114a55ddc62964bd9bdee048 100644 |
--- a/content/renderer/render_thread_impl.cc |
+++ b/content/renderer/render_thread_impl.cc |
@@ -1120,6 +1120,12 @@ void RenderThreadImpl::EnsureWebKitInitialized() { |
memory_observer_.reset(new MemoryObserver()); |
message_loop()->AddTaskObserver(memory_observer_.get()); |
} |
+ |
+ if (command_line.HasSwitch(switches::kExplicitlyAllowedPorts)) { |
+ std::string allowed_ports = |
+ command_line.GetSwitchValueASCII(switches::kExplicitlyAllowedPorts); |
+ net::SetExplicitlyAllowedPorts(allowed_ports); |
+ } |
} |
void RenderThreadImpl::RegisterSchemes() { |