| Index: chrome/browser/chromeos/system/timezone_util.cc
|
| diff --git a/chrome/browser/chromeos/system/timezone_util.cc b/chrome/browser/chromeos/system/timezone_util.cc
|
| index be305fa9168b16c1690a27d25be7e1aa99cbdc34..58656cb2f57873a29248aacb94ad7f31caa7f6b7 100644
|
| --- a/chrome/browser/chromeos/system/timezone_util.cc
|
| +++ b/chrome/browser/chromeos/system/timezone_util.cc
|
| @@ -6,7 +6,9 @@
|
|
|
| #include <stddef.h>
|
|
|
| +#include <memory>
|
| #include <string>
|
| +#include <utility>
|
|
|
| #include "base/i18n/rtl.h"
|
| #include "base/lazy_instance.h"
|
| @@ -152,11 +154,11 @@ std::unique_ptr<base::ListValue> GetTimezoneList() {
|
| for (std::vector<icu::TimeZone*>::const_iterator iter = timezones.begin();
|
| iter != timezones.end(); ++iter) {
|
| const icu::TimeZone* timezone = *iter;
|
| - base::ListValue* option = new base::ListValue();
|
| - option->Append(new base::StringValue(
|
| - chromeos::system::TimezoneSettings::GetTimezoneID(*timezone)));
|
| - option->Append(new base::StringValue(GetTimezoneName(*timezone)));
|
| - timezoneList->Append(option);
|
| + std::unique_ptr<base::ListValue> option(new base::ListValue());
|
| + option->AppendString(
|
| + chromeos::system::TimezoneSettings::GetTimezoneID(*timezone));
|
| + option->AppendString(GetTimezoneName(*timezone));
|
| + timezoneList->Append(std::move(option));
|
| }
|
| return timezoneList;
|
| }
|
|
|