From d07c45080d6debda5336b548d07aaca153480bf1 Mon Sep 17 00:00:00 2001 From: Adam Roben Date: Tue, 14 May 2013 14:50:24 -0400 Subject: [PATCH] Don't use range-based for loops VS2010 doesn't support them :-( --- brightray/browser/url_request_context_getter.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/brightray/browser/url_request_context_getter.cc b/brightray/browser/url_request_context_getter.cc index 58a251c239..5726500f6c 100644 --- a/brightray/browser/url_request_context_getter.cc +++ b/brightray/browser/url_request_context_getter.cc @@ -123,8 +123,9 @@ net::URLRequestContext* URLRequestContextGetter::GetURLRequestContext() scoped_ptr 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();