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

Unified Diff: chrome/browser/chromeos/file_manager/file_watcher_unittest.cc

Issue 1870793002: Convert //chrome/browser/chromeos from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
Index: chrome/browser/chromeos/file_manager/file_watcher_unittest.cc
diff --git a/chrome/browser/chromeos/file_manager/file_watcher_unittest.cc b/chrome/browser/chromeos/file_manager/file_watcher_unittest.cc
index fcb298dc67acb18b9a62fdbbc4e3e9d423dbb3d9..9b0da23bb364812a77378991c6b5401ac4855476 100644
--- a/chrome/browser/chromeos/file_manager/file_watcher_unittest.cc
+++ b/chrome/browser/chromeos/file_manager/file_watcher_unittest.cc
@@ -116,8 +116,7 @@ TEST_F(FileManagerFileWatcherTest, WatchLocalFile) {
ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
// See the comment at the end of this function for why scoped_ptr is used.
- scoped_ptr<FileWatcher> file_watcher(
- new FileWatcher(kVirtualPath));
+ std::unique_ptr<FileWatcher> file_watcher(new FileWatcher(kVirtualPath));
file_watcher->AddExtension(kExtensionId);
// Start watching changes in the temporary directory.
« no previous file with comments | « chrome/browser/chromeos/file_manager/file_watcher.cc ('k') | chrome/browser/chromeos/file_manager/fileapi_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698