| Index: content/common/font_list_win.cc
|
| diff --git a/content/common/font_list_win.cc b/content/common/font_list_win.cc
|
| index 38402c528eae4cbfc5ec6600891ff98a3de35540..cd1b8aaedc9a55a298598fb57aac518558b30ad5 100644
|
| --- a/content/common/font_list_win.cc
|
| +++ b/content/common/font_list_win.cc
|
| @@ -8,7 +8,9 @@
|
| #include <string.h>
|
|
|
| #include <set>
|
| +#include <utility>
|
|
|
| +#include "base/memory/ptr_util.h"
|
| #include "base/strings/string16.h"
|
| #include "base/values.h"
|
|
|
| @@ -45,10 +47,10 @@ std::unique_ptr<base::ListValue> GetFontList_SlowBlocking() {
|
| std::unique_ptr<base::ListValue> font_list(new base::ListValue);
|
| std::set<base::string16>::iterator iter;
|
| for (iter = font_names.begin(); iter != font_names.end(); ++iter) {
|
| - base::ListValue* font_item = new base::ListValue();
|
| - font_item->Append(new base::Value(*iter));
|
| - font_item->Append(new base::Value(*iter));
|
| - font_list->Append(font_item);
|
| + auto font_item = base::MakeUnique<base::ListValue>();
|
| + font_item->AppendString(*iter);
|
| + font_item->AppendString(*iter);
|
| + font_list->Append(std::move(font_item));
|
| }
|
| return font_list;
|
| }
|
|
|