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

Side by Side Diff: chromeos/settings/timezone_settings.cc

Issue 2229383003: chromeos: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chromeos/settings/timezone_settings.h" 5 #include "chromeos/settings/timezone_settings.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 328
329 private: 329 private:
330 friend struct base::DefaultSingletonTraits<TimezoneSettingsStubImpl>; 330 friend struct base::DefaultSingletonTraits<TimezoneSettingsStubImpl>;
331 331
332 TimezoneSettingsStubImpl(); 332 TimezoneSettingsStubImpl();
333 333
334 DISALLOW_COPY_AND_ASSIGN(TimezoneSettingsStubImpl); 334 DISALLOW_COPY_AND_ASSIGN(TimezoneSettingsStubImpl);
335 }; 335 };
336 336
337 TimezoneSettingsBaseImpl::~TimezoneSettingsBaseImpl() { 337 TimezoneSettingsBaseImpl::~TimezoneSettingsBaseImpl() {
338 STLDeleteElements(&timezones_); 338 base::STLDeleteElements(&timezones_);
339 } 339 }
340 340
341 const icu::TimeZone& TimezoneSettingsBaseImpl::GetTimezone() { 341 const icu::TimeZone& TimezoneSettingsBaseImpl::GetTimezone() {
342 return *timezone_.get(); 342 return *timezone_.get();
343 } 343 }
344 344
345 base::string16 TimezoneSettingsBaseImpl::GetCurrentTimezoneID() { 345 base::string16 TimezoneSettingsBaseImpl::GetCurrentTimezoneID() {
346 return chromeos::system::TimezoneSettings::GetTimezoneID(GetTimezone()); 346 return chromeos::system::TimezoneSettings::GetTimezoneID(GetTimezone());
347 } 347 }
348 348
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 475
476 // static 476 // static
477 base::string16 TimezoneSettings::GetTimezoneID(const icu::TimeZone& timezone) { 477 base::string16 TimezoneSettings::GetTimezoneID(const icu::TimeZone& timezone) {
478 icu::UnicodeString id; 478 icu::UnicodeString id;
479 timezone.getID(id); 479 timezone.getID(id);
480 return base::string16(id.getBuffer(), id.length()); 480 return base::string16(id.getBuffer(), id.length());
481 } 481 }
482 482
483 } // namespace system 483 } // namespace system
484 } // namespace chromeos 484 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/network/shill_property_handler.cc ('k') | chromeos/settings/timezone_settings_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698