| Index: gpu/command_buffer/tests/gl_test_utils.cc
 | 
| diff --git a/gpu/command_buffer/tests/gl_test_utils.cc b/gpu/command_buffer/tests/gl_test_utils.cc
 | 
| index bf860a685bef74abed25a8bede665ec695ee4c2a..f10a919439493466edd96c65fcd4e29b20760eec 100644
 | 
| --- a/gpu/command_buffer/tests/gl_test_utils.cc
 | 
| +++ b/gpu/command_buffer/tests/gl_test_utils.cc
 | 
| @@ -71,9 +71,13 @@ GLuint LoadFragmentShader(unsigned target, const gfx::Size& size) {
 | 
|  }
 | 
|  
 | 
|  bool GLTestHelper::HasExtension(const char* extension) {
 | 
| -  std::string extensions(
 | 
| -      reinterpret_cast<const char*>(glGetString(GL_EXTENSIONS)));
 | 
| -  return extensions.find(extension) != std::string::npos;
 | 
| +  // Pad with an extra space to ensure that |extension| is not a substring of
 | 
| +  // another extension.
 | 
| +  std::string extensions =
 | 
| +      std::string(reinterpret_cast<const char*>(glGetString(GL_EXTENSIONS))) +
 | 
| +      " ";
 | 
| +  std::string extension_padded = std::string(extension) + " ";
 | 
| +  return extensions.find(extension_padded) != std::string::npos;
 | 
|  }
 | 
|  
 | 
|  bool GLTestHelper::CheckGLError(const char* msg, int line) {
 | 
| 
 |