Don't use range-based for loops

VS2010 doesn't support them :-(
This commit is contained in:
Adam Roben 2013-05-14 14:50:24 -04:00
parent 5fa005d5da
commit d07c45080d

View file

@ -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();