| Index: tools/gn/input_file_manager.h
|
| diff --git a/tools/gn/input_file_manager.h b/tools/gn/input_file_manager.h
|
| index ba055e219c57bbc18ce2943ffcdd14491fec9b0c..dd166048e9b030e2405319f81d9da3533ba0841f 100644
|
| --- a/tools/gn/input_file_manager.h
|
| +++ b/tools/gn/input_file_manager.h
|
| @@ -137,7 +137,8 @@ class InputFileManager : public base::RefCountedThreadSafe<InputFileManager> {
|
| mutable base::Lock lock_;
|
|
|
| // Maps repo-relative filenames to the corresponding owned pointer.
|
| - typedef base::hash_map<SourceFile, InputFileData*> InputFileMap;
|
| + typedef base::hash_map<SourceFile, std::unique_ptr<InputFileData>>
|
| + InputFileMap;
|
| InputFileMap input_files_;
|
|
|
| // Tracks all dynamic inputs. The data are holders for memory management
|
| @@ -146,9 +147,7 @@ class InputFileManager : public base::RefCountedThreadSafe<InputFileManager> {
|
| // charge of the threadsafety requirements.
|
| //
|
| // See AddDynamicInput().
|
| - //
|
| - // Owning pointers.
|
| - std::vector<InputFileData*> dynamic_inputs_;
|
| + std::vector<std::unique_ptr<InputFileData>> dynamic_inputs_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(InputFileManager);
|
| };
|
|
|