| Index: chrome/browser/automation/automation_provider.cc
|
| ===================================================================
|
| --- chrome/browser/automation/automation_provider.cc (revision 88522)
|
| +++ chrome/browser/automation/automation_provider.cc (working copy)
|
| @@ -579,16 +579,7 @@
|
|
|
| void AutomationProvider::SetProxyConfig(const std::string& new_proxy_config) {
|
| net::URLRequestContextGetter* context_getter =
|
| - Profile::GetDefaultRequestContext();
|
| - 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();
|
| - }
|
| + profile_->GetRequestContext();
|
| DCHECK(context_getter);
|
|
|
| BrowserThread::PostTask(
|
|
|