Chromium Code Reviews| Index: ui/gl/gl_surface.cc |
| diff --git a/ui/gl/gl_surface.cc b/ui/gl/gl_surface.cc |
| index 9c25ff07d6380d380588cb022c86d2920a33affe..467dd29ee023321d685ff73b6dcac883343a610e 100644 |
| --- a/ui/gl/gl_surface.cc |
| +++ b/ui/gl/gl_surface.cc |
| @@ -10,6 +10,7 @@ |
| #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 +51,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)) { |
|
sky
2015/12/01 22:08:31
nit: nuke {}
tfarina
2015/12/02 20:31:41
Done.
|
| LOG(ERROR) << "Requested GL implementation is not available."; |
| return false; |
| } |