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

Side by Side Diff: chromecast/crash/linux/synchronized_minidump_manager.h

Issue 1875623002: Convert //chromecast from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROMECAST_CRASH_LINUX_SYNCHRONIZED_MINIDUMP_MANAGER_H_ 5 #ifndef CHROMECAST_CRASH_LINUX_SYNCHRONIZED_MINIDUMP_MANAGER_H_
6 #define CHROMECAST_CRASH_LINUX_SYNCHRONIZED_MINIDUMP_MANAGER_H_ 6 #define CHROMECAST_CRASH_LINUX_SYNCHRONIZED_MINIDUMP_MANAGER_H_
7 7
8 #include <time.h> 8 #include <time.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 134
135 // Creates an empty lock file and an initialized metadata file. 135 // Creates an empty lock file and an initialized metadata file.
136 int InitializeFiles(); 136 int InitializeFiles();
137 137
138 // Release the lock file with the associated *fd*. 138 // Release the lock file with the associated *fd*.
139 void ReleaseLockFile(); 139 void ReleaseLockFile();
140 140
141 const std::string lockfile_path_; 141 const std::string lockfile_path_;
142 const std::string metadata_path_; 142 const std::string metadata_path_;
143 int lockfile_fd_; 143 int lockfile_fd_;
144 scoped_ptr<base::Value> metadata_; 144 std::unique_ptr<base::Value> metadata_;
145 scoped_ptr<base::ListValue> dumps_; 145 std::unique_ptr<base::ListValue> dumps_;
146 146
147 DISALLOW_COPY_AND_ASSIGN(SynchronizedMinidumpManager); 147 DISALLOW_COPY_AND_ASSIGN(SynchronizedMinidumpManager);
148 }; 148 };
149 149
150 } // namespace chromecast 150 } // namespace chromecast
151 151
152 #endif // CHROMECAST_CRASH_LINUX_SYNCHRONIZED_MINIDUMP_MANAGER_H_ 152 #endif // CHROMECAST_CRASH_LINUX_SYNCHRONIZED_MINIDUMP_MANAGER_H_
OLDNEW
« no previous file with comments | « chromecast/crash/linux/minidump_writer_unittest.cc ('k') | chromecast/crash/linux/synchronized_minidump_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698