Index: tools/gn/loader.cc |
diff --git a/tools/gn/loader.cc b/tools/gn/loader.cc |
index aebb6af0ee95a2911026c1c7f5f83cdfcdcbc693..9061be82a0bdd548941349405b2442446948546e 100644 |
--- a/tools/gn/loader.cc |
+++ b/tools/gn/loader.cc |
@@ -5,6 +5,7 @@ |
#include "tools/gn/loader.h" |
#include "base/bind.h" |
+#include "base/memory/ptr_util.h" |
#include "base/message_loop/message_loop.h" |
#include "base/stl_util.h" |
#include "tools/gn/build_settings.h" |
@@ -266,7 +267,7 @@ void LoaderImpl::BackgroundLoadFile(const Settings* settings, |
// Pass all of the items that were defined off to the builder. |
for (auto& item : collected_items) { |
- settings->build_settings()->ItemDefined(make_scoped_ptr(item)); |
+ settings->build_settings()->ItemDefined(base::WrapUnique(item)); |
item = nullptr; |
} |