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

Unified Diff: chrome/browser/browser_init.cc

Issue 176032: Adding commandline option to override bans on certain port numbers through a ... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 4 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
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | net/url_request/url_request_http_job.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_init.cc
===================================================================
--- chrome/browser/browser_init.cc (revision 24426)
+++ chrome/browser/browser_init.cc (working copy)
@@ -57,6 +57,7 @@
#include "grit/generated_resources.h"
#include "grit/locale_settings.h"
#include "grit/theme_resources.h"
+#include "net/url_request/url_request_http_job.h"
#include "webkit/glue/webkit_glue.h"
#if defined(OS_WIN)
@@ -827,6 +828,12 @@
silent_launch = !process_startup;
}
+ if (command_line.HasSwitch(switches::kExplicitlyAllowedPorts)) {
+ std::wstring allowed_ports =
+ command_line.GetSwitchValue(switches::kExplicitlyAllowedPorts);
+ URLRequestHttpJob::SetExplicitlyAllowedPorts(allowed_ports);
+ }
+
// If we don't want to launch a new browser window or tab (in the case
// of an automation request), we are done here.
if (!silent_launch) {
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | net/url_request/url_request_http_job.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698