| Index: ui/gl/gl_share_group.cc
|
| diff --git a/ui/gl/gl_share_group.cc b/ui/gl/gl_share_group.cc
|
| index dd424a54fe947915e80b36636ae440891387357d..d5ab43db03bf6b1dc904d10be5171f4ff0dab0b4 100644
|
| --- a/ui/gl/gl_share_group.cc
|
| +++ b/ui/gl/gl_share_group.cc
|
| @@ -37,11 +37,9 @@ void* GLShareGroup::GetHandle() {
|
| }
|
|
|
| GLContext* GLShareGroup::GetContext() {
|
| - for (ContextSet::iterator it = contexts_.begin();
|
| - it != contexts_.end();
|
| - ++it) {
|
| - if ((*it)->GetHandle())
|
| - return *it;
|
| + for (auto context : contexts_) {
|
| + if (context->GetHandle())
|
| + return context;
|
| }
|
|
|
| return NULL;
|
|
|