Index: chrome/browser/automation/automation_provider.cc |
=================================================================== |
--- chrome/browser/automation/automation_provider.cc (revision 88135) |
+++ chrome/browser/automation/automation_provider.cc (working copy) |
@@ -579,15 +579,9 @@ |
void AutomationProvider::SetProxyConfig(const std::string& new_proxy_config) { |
net::URLRequestContextGetter* context_getter = |
- Profile::GetDefaultRequestContext(); |
+ profile_->GetRequestContext(); |
if (!context_getter) { |
- FilePath user_data_dir; |
- PathService::Get(chrome::DIR_USER_DATA, &user_data_dir); |
- ProfileManager* profile_manager = g_browser_process->profile_manager(); |
- DCHECK(profile_manager); |
- Profile* profile = profile_manager->GetDefaultProfile(user_data_dir); |
- DCHECK(profile); |
- context_getter = profile->GetRequestContext(); |
+ context_getter = g_browser_process->system_request_context(); |
willchan no longer on Chromium
2011/06/08 16:55:35
Profile always lazily creates a URLRequestContextG
|
} |
DCHECK(context_getter); |