summaryrefslogtreecommitdiff
path: root/chromium/base/value_conversions.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/base/value_conversions.h')
-rw-r--r--chromium/base/value_conversions.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/chromium/base/value_conversions.h b/chromium/base/value_conversions.h
index 6ce1bff27e4..bfdec70a91a 100644
--- a/chromium/base/value_conversions.h
+++ b/chromium/base/value_conversions.h
@@ -7,21 +7,21 @@
// This file contains methods to convert things to a |Value| and back.
+#include <memory>
#include "base/base_export.h"
-
namespace base {
class FilePath;
class TimeDelta;
class Value;
-using StringValue = Value;
// The caller takes ownership of the returned value.
-BASE_EXPORT StringValue* CreateFilePathValue(const FilePath& in_value);
+BASE_EXPORT std::unique_ptr<Value> CreateFilePathValue(
+ const FilePath& in_value);
BASE_EXPORT bool GetValueAsFilePath(const Value& value, FilePath* file_path);
-BASE_EXPORT StringValue* CreateTimeDeltaValue(const TimeDelta& time);
+BASE_EXPORT std::unique_ptr<Value> CreateTimeDeltaValue(const TimeDelta& time);
BASE_EXPORT bool GetValueAsTimeDelta(const Value& value, TimeDelta* time);
} // namespace base