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(
|
scoped_ptr<net::URLRequestJobFactoryImpl> job_factory(
|
||||||
new net::URLRequestJobFactoryImpl());
|
new net::URLRequestJobFactoryImpl());
|
||||||
for (auto& it : protocol_handlers_) {
|
for (auto it = protocol_handlers_.begin(),
|
||||||
bool set_protocol = job_factory->SetProtocolHandler(it.first, it.second.release());
|
end = protocol_handlers_.end(); it != end; ++it) {
|
||||||
|
bool set_protocol = job_factory->SetProtocolHandler(it->first, it->second.release());
|
||||||
DCHECK(set_protocol);
|
DCHECK(set_protocol);
|
||||||
}
|
}
|
||||||
protocol_handlers_.clear();
|
protocol_handlers_.clear();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue