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

Unified Diff: components/sessions/core/in_memory_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
Index: components/sessions/core/in_memory_tab_restore_service.h
diff --git a/components/sessions/core/in_memory_tab_restore_service.h b/components/sessions/core/in_memory_tab_restore_service.h
index c64d7d99b9365c1306e2495a4c76845477521f1c..eeb490448658eec66a9fffb60d73dc8e7fb2a0c0 100644
--- a/components/sessions/core/in_memory_tab_restore_service.h
+++ b/components/sessions/core/in_memory_tab_restore_service.h
@@ -5,10 +5,10 @@
#ifndef COMPONENTS_SESSIONS_CORE_IN_MEMORY_TAB_RESTORE_SERVICE_H_
#define COMPONENTS_SESSIONS_CORE_IN_MEMORY_TAB_RESTORE_SERVICE_H_
+#include <memory>
#include <vector>
#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"
@@ -27,7 +27,7 @@ class SESSIONS_EXPORT InMemoryTabRestoreService : public TabRestoreService {
// Creates a new TabRestoreService and provides an object that provides the
// current time. The TabRestoreService does not take ownership of
// |time_factory|.
- InMemoryTabRestoreService(scoped_ptr<TabRestoreServiceClient> client,
+ InMemoryTabRestoreService(std::unique_ptr<TabRestoreServiceClient> client,
TimeFactory* time_factory);
~InMemoryTabRestoreService() override;
@@ -53,7 +53,7 @@ class SESSIONS_EXPORT InMemoryTabRestoreService : public TabRestoreService {
void Shutdown() override;
private:
- scoped_ptr<TabRestoreServiceClient> client_;
+ std::unique_ptr<TabRestoreServiceClient> client_;
TabRestoreServiceHelper helper_;
DISALLOW_COPY_AND_ASSIGN(InMemoryTabRestoreService);
« no previous file with comments | « components/sessions/core/base_session_service_delegate.h ('k') | components/sessions/core/in_memory_tab_restore_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698