Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Unified Diff: gpu/config/gpu_control_list.cc

Issue 2036723003: Remove ListValue::Append(new {Fundamental,String}Value(...)) pattern in //gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/config/gpu_control_list.cc
diff --git a/gpu/config/gpu_control_list.cc b/gpu/config/gpu_control_list.cc
index a8ba402758b71939201b9cca093b52f286f97d45..d8f690a469057e869a1339950ddd37f413b09cd6 100644
--- a/gpu/config/gpu_control_list.cc
+++ b/gpu/config/gpu_control_list.cc
@@ -1536,12 +1536,12 @@ void GpuControlList::GetReasons(base::ListValue* problem_list,
base::ListValue* cr_bugs = new base::ListValue();
for (size_t j = 0; j < entry->cr_bugs().size(); ++j)
- cr_bugs->Append(new base::FundamentalValue(entry->cr_bugs()[j]));
+ cr_bugs->AppendInteger(entry->cr_bugs()[j]);
problem->Set("crBugs", cr_bugs);
base::ListValue* webkit_bugs = new base::ListValue();
for (size_t j = 0; j < entry->webkit_bugs().size(); ++j) {
- webkit_bugs->Append(new base::FundamentalValue(entry->webkit_bugs()[j]));
+ webkit_bugs->AppendInteger(entry->webkit_bugs()[j]);
}
problem->Set("webkitBugs", webkit_bugs);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698