Commit 7590a6d6 authored by jww's avatar jww Committed by Commit bot

A memory issue occurred in https://codereview.chromium.org/827123004/

because of the use of an uninitialized value in a function call.
Fortunately, it turns out that call is completely unnecessary anyway, so
this simply removes it.

TBR=danakj@chromium.org,jhawkins@chromium.org

Review URL: https://codereview.chromium.org/911453002

Cr-Commit-Position: refs/heads/master@{#315242}
parent 96235b3e
......@@ -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());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment