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

Unified Diff: components/sessions/core/persistent_tab_restore_service.h

Issue 1912843002: Convert //components/sessions 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/sessions/core/live_tab.cc ('k') | components/sessions/core/persistent_tab_restore_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sessions/core/persistent_tab_restore_service.h
diff --git a/components/sessions/core/persistent_tab_restore_service.h b/components/sessions/core/persistent_tab_restore_service.h
index d522ee2556d49abb4245369ef4f5595d2379ed98..ac3ffd4125b2bd86291b083b6fe22f93db741c90 100644
--- a/components/sessions/core/persistent_tab_restore_service.h
+++ b/components/sessions/core/persistent_tab_restore_service.h
@@ -5,11 +5,11 @@
#ifndef COMPONENTS_SESSIONS_CORE_PERSISTENT_TAB_RESTORE_SERVICE_H_
#define COMPONENTS_SESSIONS_CORE_PERSISTENT_TAB_RESTORE_SERVICE_H_
+#include <memory>
#include <vector>
#include "base/compiler_specific.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "components/sessions/core/sessions_export.h"
#include "components/sessions/core/tab_restore_service.h"
#include "components/sessions/core/tab_restore_service_client.h"
@@ -23,7 +23,7 @@ namespace sessions {
class SESSIONS_EXPORT PersistentTabRestoreService : public TabRestoreService {
public:
// Does not take ownership of |time_factory|.
- PersistentTabRestoreService(scoped_ptr<TabRestoreServiceClient> client,
+ PersistentTabRestoreService(std::unique_ptr<TabRestoreServiceClient> client,
TimeFactory* time_factory);
~PersistentTabRestoreService() override;
@@ -57,8 +57,8 @@ class SESSIONS_EXPORT PersistentTabRestoreService : public TabRestoreService {
Entries* mutable_entries();
void PruneEntries();
- scoped_ptr<TabRestoreServiceClient> client_;
- scoped_ptr<Delegate> delegate_;
+ std::unique_ptr<TabRestoreServiceClient> client_;
+ std::unique_ptr<Delegate> delegate_;
TabRestoreServiceHelper helper_;
DISALLOW_COPY_AND_ASSIGN(PersistentTabRestoreService);
« no previous file with comments | « components/sessions/core/live_tab.cc ('k') | components/sessions/core/persistent_tab_restore_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698