| Index: content/browser/gpu/gpu_internals_ui.cc
|
| diff --git a/content/browser/gpu/gpu_internals_ui.cc b/content/browser/gpu/gpu_internals_ui.cc
|
| index c8758c5476dee82dc62e98455d50ba6a15ef2b88..689d55722030bceccc5ced21f5e0ff09d18099d8 100644
|
| --- a/content/browser/gpu/gpu_internals_ui.cc
|
| +++ b/content/browser/gpu/gpu_internals_ui.cc
|
| @@ -390,13 +390,16 @@ void GpuMessageHandler::OnGpuInfoUpdate() {
|
| // Get GPU Info.
|
| scoped_ptr<base::DictionaryValue> gpu_info_val(GpuInfoAsDictionaryValue());
|
|
|
| +
|
| // Add in blacklisting features
|
| base::DictionaryValue* feature_status = new base::DictionaryValue;
|
| feature_status->Set("featureStatus", GetFeatureStatus());
|
| feature_status->Set("problems", GetProblems());
|
| - feature_status->Set("workarounds", GetDriverBugWorkarounds());
|
| - if (feature_status)
|
| - gpu_info_val->Set("featureStatus", feature_status);
|
| + base::ListValue* workarounds = new base::ListValue();
|
| + for (const std::string& workaround : GetDriverBugWorkarounds())
|
| + workarounds->AppendString(workaround);
|
| + feature_status->Set("workarounds", workarounds);
|
| + gpu_info_val->Set("featureStatus", feature_status);
|
|
|
| // Send GPU Info to javascript.
|
| web_ui()->CallJavascriptFunction("browserBridge.onGpuInfoUpdate",
|
|
|