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

Unified Diff: base/i18n/time_formatting_unittest.cc

Issue 911453002: Fix Valgrind error in earlier time_formatting_unittest.cc change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 5 years, 10 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: base/i18n/time_formatting_unittest.cc
diff --git a/base/i18n/time_formatting_unittest.cc b/base/i18n/time_formatting_unittest.cc
index 04846c9ea3b563cbc4a120b44184d831974d5332..4739b62a740a7e91c0d74601babb3cd9b335dad5 100644
--- a/base/i18n/time_formatting_unittest.cc
+++ b/base/i18n/time_formatting_unittest.cc
@@ -23,12 +23,6 @@ const Time::Exploded kTestDateTimeExploded = {
base::string16 GetShortTimeZone() {
scoped_ptr<icu::TimeZone> zone(icu::TimeZone::createDefault());
- // This code shamelessly taken from
- // src/chrome/browser/chromeos/system/timezone_util.cc.
- int raw_offset, dst_offset;
- UErrorCode status;
- zone->getOffset(icu::Calendar::getNow(), false, raw_offset, dst_offset,
- status);
icu::UnicodeString name;
zone->getDisplayName(true, icu::TimeZone::SHORT, name);
return base::string16(name.getBuffer(), name.length());
« 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