| Index: base/value_conversions.cc
|
| diff --git a/base/value_conversions.cc b/base/value_conversions.cc
|
| index caf9d724ef94d159ed03257422b8daf7ff2a38b9..6bde1aee2218ae9842712ea00f7d1f90985a9f8c 100644
|
| --- a/base/value_conversions.cc
|
| +++ b/base/value_conversions.cc
|
| @@ -28,18 +28,18 @@ bool GetValueAsFilePath(const Value& value, FilePath* file_path) {
|
|
|
| // |Value| does not support 64-bit integers, and doubles do not have enough
|
| // precision, so we store the 64-bit time value as a string instead.
|
| -StringValue* CreateTimeValue(const Time& time) {
|
| +StringValue* CreateTimeDeltaValue(const TimeDelta& time) {
|
| std::string string_value = base::Int64ToString(time.ToInternalValue());
|
| return new StringValue(string_value);
|
| }
|
|
|
| -bool GetValueAsTime(const Value& value, Time* time) {
|
| +bool GetValueAsTimeDelta(const Value& value, TimeDelta* time) {
|
| std::string str;
|
| int64 int_value;
|
| if (!value.GetAsString(&str) || !base::StringToInt64(str, &int_value))
|
| return false;
|
| if (time)
|
| - *time = base::Time::FromInternalValue(int_value);
|
| + *time = TimeDelta::FromInternalValue(int_value);
|
| return true;
|
| }
|
|
|
|
|