Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Unified Diff: tools/gn/scope_per_file_provider.h

Issue 1869503004: Convert //tools to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, change iwyu fixes for converted directories to include <memory> Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/gn/scope.cc ('k') | tools/gn/scope_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/scope_per_file_provider.h
diff --git a/tools/gn/scope_per_file_provider.h b/tools/gn/scope_per_file_provider.h
index 8cdfa6c9279fc96c4e7a05a1851bad2a57e15b7a..ac0d87206159726284e4995c7138585bddbe032f 100644
--- a/tools/gn/scope_per_file_provider.h
+++ b/tools/gn/scope_per_file_provider.h
@@ -5,8 +5,9 @@
#ifndef TOOLS_GN_SCOPE_PER_FILE_PROVIDER_H_
#define TOOLS_GN_SCOPE_PER_FILE_PROVIDER_H_
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "tools/gn/scope.h"
// ProgrammaticProvider for a scope to provide it with per-file built-in
@@ -35,14 +36,14 @@ class ScopePerFileProvider : public Scope::ProgrammaticProvider {
bool allow_target_vars_;
// All values are lazily created.
- scoped_ptr<Value> current_toolchain_;
- scoped_ptr<Value> default_toolchain_;
- scoped_ptr<Value> python_path_;
- scoped_ptr<Value> root_build_dir_;
- scoped_ptr<Value> root_gen_dir_;
- scoped_ptr<Value> root_out_dir_;
- scoped_ptr<Value> target_gen_dir_;
- scoped_ptr<Value> target_out_dir_;
+ std::unique_ptr<Value> current_toolchain_;
+ std::unique_ptr<Value> default_toolchain_;
+ std::unique_ptr<Value> python_path_;
+ std::unique_ptr<Value> root_build_dir_;
+ std::unique_ptr<Value> root_gen_dir_;
+ std::unique_ptr<Value> root_out_dir_;
+ std::unique_ptr<Value> target_gen_dir_;
+ std::unique_ptr<Value> target_out_dir_;
DISALLOW_COPY_AND_ASSIGN(ScopePerFileProvider);
};
« no previous file with comments | « tools/gn/scope.cc ('k') | tools/gn/scope_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698