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

Unified Diff: chrome/browser/chromeos/system/timezone_util.cc

Issue 2387783002: Remove stl_util's deletion functions from chromeos/. (Closed)
Patch Set: armansito Created 4 years, 2 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 | chromeos/dbus/fake_shill_profile_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 067775f48b7cfa36fb3ea785d7a922f076759a32..7552d5b1c73d694a3772e921fb7fa94b956227cf 100644
--- a/chrome/browser/chromeos/system/timezone_util.cc
+++ b/chrome/browser/chromeos/system/timezone_util.cc
@@ -149,12 +149,10 @@ namespace system {
// Creates a list of pairs of each timezone's ID and name.
std::unique_ptr<base::ListValue> GetTimezoneList() {
- const std::vector<icu::TimeZone*> &timezones =
+ const auto& timezones =
chromeos::system::TimezoneSettings::GetInstance()->GetTimezoneList();
std::unique_ptr<base::ListValue> timezoneList(new base::ListValue());
- for (std::vector<icu::TimeZone*>::const_iterator iter = timezones.begin();
- iter != timezones.end(); ++iter) {
- const icu::TimeZone* timezone = *iter;
+ for (const auto& timezone : timezones) {
auto option = base::MakeUnique<base::ListValue>();
option->AppendString(
chromeos::system::TimezoneSettings::GetTimezoneID(*timezone));
« no previous file with comments | « no previous file | chromeos/dbus/fake_shill_profile_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698