| Index: ui/gl/gl_surface.cc
|
| diff --git a/ui/gl/gl_surface.cc b/ui/gl/gl_surface.cc
|
| index 9c25ff07d6380d380588cb022c86d2920a33affe..b69e93bfe964af2ccb2bb11080389ba2d6bd7845 100644
|
| --- a/ui/gl/gl_surface.cc
|
| +++ b/ui/gl/gl_surface.cc
|
| @@ -4,12 +4,12 @@
|
|
|
| #include "ui/gl/gl_surface.h"
|
|
|
| -#include <algorithm>
|
| #include <vector>
|
|
|
| #include "base/command_line.h"
|
| #include "base/lazy_instance.h"
|
| #include "base/logging.h"
|
| +#include "base/stl_util.h"
|
| #include "base/threading/thread_local.h"
|
| #include "base/trace_event/trace_event.h"
|
| #include "ui/gfx/swap_result.h"
|
| @@ -50,9 +50,7 @@ bool GLSurface::InitializeOneOff() {
|
| impl = kGLImplementationEGLGLES2;
|
| } else {
|
| impl = GetNamedGLImplementation(requested_implementation_name);
|
| - if (std::find(allowed_impls.begin(),
|
| - allowed_impls.end(),
|
| - impl) == allowed_impls.end()) {
|
| + if (!ContainsValue(allowed_impls, impl)) {
|
| LOG(ERROR) << "Requested GL implementation is not available.";
|
| return false;
|
| }
|
|
|