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

Unified Diff: chrome/browser/ui/webui/md_downloads/downloads_list_tracker.h

Issue 1865213004: Convert //chrome/browser/ui 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/ui/webui/md_downloads/downloads_list_tracker.h
diff --git a/chrome/browser/ui/webui/md_downloads/downloads_list_tracker.h b/chrome/browser/ui/webui/md_downloads/downloads_list_tracker.h
index 2b45bf1983ec19318516ebbc7f5edbb2c3b58b39..2fd266c91d51d209d48e7cc96acdf6eaa579feba 100644
--- a/chrome/browser/ui/webui/md_downloads/downloads_list_tracker.h
+++ b/chrome/browser/ui/webui/md_downloads/downloads_list_tracker.h
@@ -7,11 +7,11 @@
#include <stddef.h>
+#include <memory>
#include <set>
#include "base/callback_forward.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/strings/string16.h"
#include "base/time/time.h"
#include "base/values.h"
@@ -70,7 +70,7 @@ class DownloadsListTracker : public AllDownloadItemNotifier::Observer {
base::Callback<bool(const content::DownloadItem&)>);
// Creates a dictionary value that's sent to the page as JSON.
- virtual scoped_ptr<base::DictionaryValue> CreateDownloadItemValue(
+ virtual std::unique_ptr<base::DictionaryValue> CreateDownloadItemValue(
content::DownloadItem* item) const;
// Exposed for testing.
@@ -110,7 +110,7 @@ class DownloadsListTracker : public AllDownloadItemNotifier::Observer {
void RemoveItem(const SortedSet::iterator& remove);
AllDownloadItemNotifier main_notifier_;
- scoped_ptr<AllDownloadItemNotifier> original_notifier_;
+ std::unique_ptr<AllDownloadItemNotifier> original_notifier_;
// The WebUI object corresponding to the page we care about.
content::WebUI* const web_ui_;
« no previous file with comments | « chrome/browser/ui/webui/local_state/local_state_ui.cc ('k') | chrome/browser/ui/webui/md_downloads/downloads_list_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698