Index: chrome/browser/net/chrome_url_request_context.cc |
diff --git a/chrome/browser/net/chrome_url_request_context.cc b/chrome/browser/net/chrome_url_request_context.cc |
index 5ba3f6338cfab9ecfa189724bbccf461eca87f85..d834e576110ed4378d14d8925aca02ec7708dc9d 100644 |
--- a/chrome/browser/net/chrome_url_request_context.cc |
+++ b/chrome/browser/net/chrome_url_request_context.cc |
@@ -23,7 +23,7 @@ |
static net::ProxyInfo* CreateProxyInfo() { |
net::ProxyInfo* proxy_info = NULL; |
- CommandLine command_line; |
+ const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
if (command_line.HasSwitch(switches::kProxyServer)) { |
proxy_info = new net::ProxyInfo(); |
const std::wstring& proxy_server = |
@@ -47,7 +47,7 @@ ChromeURLRequestContext* ChromeURLRequestContext::CreateOriginal( |
net::HttpCache* cache = |
new net::HttpCache(context->proxy_service_, disk_cache_path, 0); |
- CommandLine command_line; |
+ const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
bool record_mode = chrome::kRecordModeEnabled && |
command_line.HasSwitch(switches::kRecordMode); |
bool playback_mode = command_line.HasSwitch(switches::kPlaybackMode); |