Chromium Code Reviews| Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc |
| diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc |
| index 29458b46555fe88e57e8ff928cc12b376e076192..740768f5f4977deb2bdb92e97cfaee6eed453a21 100644 |
| --- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc |
| +++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc |
| @@ -243,16 +243,7 @@ void DataReductionProxyConfig::LogProxyState(bool enabled, |
| void DataReductionProxyConfig::HandleSecureProxyCheckResponse( |
| const std::string& response, const net::URLRequestStatus& status) { |
| - DCHECK(ui_task_runner_->BelongsToCurrentThread()); |
| - io_task_runner_->PostTask( |
| - FROM_HERE, |
| - base::Bind( |
| - &DataReductionProxyConfig::HandleSecureProxyCheckResponseOnIOThread, |
| - base::Unretained(this), response, status)); |
| -} |
| - |
| -void DataReductionProxyConfig::HandleSecureProxyCheckResponseOnIOThread( |
| - const std::string& response, const net::URLRequestStatus& status) { |
| + DCHECK(io_task_runner_->BelongsToCurrentThread()); |
| if (event_store_) { |
| event_store_->EndSecureProxyCheck(bound_net_log_, status.error()); |
| } |
| @@ -381,7 +372,7 @@ void DataReductionProxyConfig::StartSecureProxyCheck() { |
| data_reduction_proxy_service_->SecureProxyCheck( |
| params_->secure_proxy_check_url(), |
| base::Bind(&DataReductionProxyConfig::HandleSecureProxyCheckResponse, |
| - base::Unretained(this))); |
| + base::Unretained(this)), io_task_runner_); |
|
bengr
2015/03/16 23:21:06
Why not just send the secure proxy check from DRPC
tbansal1
2015/03/19 22:43:57
Done.
|
| } |
| } |