Index: gpu/command_buffer/service/feature_info.cc |
diff --git a/gpu/command_buffer/service/feature_info.cc b/gpu/command_buffer/service/feature_info.cc |
index 3be7be0ecbaf99075d44d4e24d392e3b7cf82c4b..e853d9b59387fac65e910d0ca3fb0cdba2fcf157 100644 |
--- a/gpu/command_buffer/service/feature_info.cc |
+++ b/gpu/command_buffer/service/feature_info.cc |
@@ -860,7 +860,8 @@ void FeatureInfo::InitializeFeatures() { |
} |
} |
-void FeatureInfo::AddExtensionString(const std::string& str) { |
+void FeatureInfo::AddExtensionString(const char* s) { |
+ std::string str(s); |
size_t pos = extensions_.find(str); |
while (pos != std::string::npos && |
pos + str.length() < extensions_.length() && |