Don't use range-based for loops
VS2010 doesn't support them :-(
This commit is contained in:
parent
5fa005d5da
commit
d07c45080d
1 changed files with 3 additions and 2 deletions
|
@ -123,8 +123,9 @@ net::URLRequestContext* URLRequestContextGetter::GetURLRequestContext()
|
|||
|
||||
scoped_ptr<net::URLRequestJobFactoryImpl> job_factory(
|
||||
new net::URLRequestJobFactoryImpl());
|
||||
for (auto& it : protocol_handlers_) {
|
||||
bool set_protocol = job_factory->SetProtocolHandler(it.first, it.second.release());
|
||||
for (auto it = protocol_handlers_.begin(),
|
||||
end = protocol_handlers_.end(); it != end; ++it) {
|
||||
bool set_protocol = job_factory->SetProtocolHandler(it->first, it->second.release());
|
||||
DCHECK(set_protocol);
|
||||
}
|
||||
protocol_handlers_.clear();
|
||||
|
|
Loading…
Reference in a new issue