Index: tools/gn/desc_builder.cc |
diff --git a/tools/gn/desc_builder.cc b/tools/gn/desc_builder.cc |
index c04fad6d18170aaecebcfeb1e1164adda303aefa..965ec921f10a12be760ee51aba699debb71b5a23 100644 |
--- a/tools/gn/desc_builder.cc |
+++ b/tools/gn/desc_builder.cc |
@@ -122,17 +122,17 @@ class BaseDescBuilder { |
} |
ValuePtr RenderValue(const std::string& s, bool optional = false) { |
- return (s.empty() && optional) ? base::Value::CreateNullValue() |
+ return (s.empty() && optional) ? base::MakeUnique<base::Value>() |
: ValuePtr(new base::Value(s)); |
} |
ValuePtr RenderValue(const SourceDir& d) { |
- return d.is_null() ? base::Value::CreateNullValue() |
+ return d.is_null() ? base::MakeUnique<base::Value>() |
: ValuePtr(new base::Value(FormatSourceDir(d))); |
} |
ValuePtr RenderValue(const SourceFile& f) { |
- return f.is_null() ? base::Value::CreateNullValue() |
+ return f.is_null() ? base::MakeUnique<base::Value>() |
: ValuePtr(new base::Value(f.value())); |
} |