Index: webrtc/base/proxydetect.cc |
diff --git a/webrtc/base/proxydetect.cc b/webrtc/base/proxydetect.cc |
index abb8f0a927904a7f09cbe408e0024137859f2754..10e7a02241c3af442065ecc85a50316aebf66575 100644 |
--- a/webrtc/base/proxydetect.cc |
+++ b/webrtc/base/proxydetect.cc |
@@ -29,6 +29,7 @@ |
#endif |
#include <map> |
+#include <memory> |
#include "webrtc/base/arraysize.h" |
#include "webrtc/base/fileutils.h" |
@@ -430,7 +431,7 @@ bool GetDefaultFirefoxProfile(Pathname* profile_path) { |
// Note: we are looking for the first entry with "Default=1", or the last |
// entry in the file |
path.SetFilename("profiles.ini"); |
- scoped_ptr<FileStream> fs(Filesystem::OpenFile(path, "r")); |
+ std::unique_ptr<FileStream> fs(Filesystem::OpenFile(path, "r")); |
if (!fs) { |
return false; |
} |
@@ -495,7 +496,7 @@ bool GetDefaultFirefoxProfile(Pathname* profile_path) { |
bool ReadFirefoxPrefs(const Pathname& filename, |
const char * prefix, |
StringMap* settings) { |
- scoped_ptr<FileStream> fs(Filesystem::OpenFile(filename, "r")); |
+ std::unique_ptr<FileStream> fs(Filesystem::OpenFile(filename, "r")); |
if (!fs) { |
LOG(LS_ERROR) << "Failed to open file: " << filename.pathname(); |
return false; |