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

Unified Diff: content/child/blink_platform_impl.cc

Issue 1036823003: Fix to respect --explicitly-allowed-ports command line option-Chromium Side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: content/child/blink_platform_impl.cc
diff --git a/content/child/blink_platform_impl.cc b/content/child/blink_platform_impl.cc
index eafa1befb4c325777492f65f5c10bd830b6c78d4..b80790dacf99978b019d5a9e32762ce3978ef321 100644
--- a/content/child/blink_platform_impl.cc
+++ b/content/child/blink_platform_impl.cc
@@ -504,6 +504,15 @@ bool BlinkPlatformImpl::isReservedIPAddress(
return net::IsIPAddressReserved(address);
}
+bool BlinkPlatformImpl::portAllowed(unsigned short port,
+ bool is_ftp) const {
+ if (is_ftp)
eroman 2015/04/10 01:32:17 {curly braces around this }
Paritosh Kumar 2015/04/10 12:34:32 Thanks. BTW, removing this if condition.
+ return net::IsPortAllowedByFtp(port)
+ || net::IsPortAllowedByOverride(port);
+ return net::IsPortAllowedByDefault(port)
+ || net::IsPortAllowedByOverride(port);
+}
+
blink::WebThread* BlinkPlatformImpl::createThread(const char* name) {
WebThreadImpl* thread = new WebThreadImpl(name);
thread->TaskRunner()->PostTask(

Powered by Google App Engine
This is Rietveld 408576698