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

Unified Diff: chrome/browser/extensions/api/sessions/sessions_api.h

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header 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/extensions/api/sessions/sessions_api.h
diff --git a/chrome/browser/extensions/api/sessions/sessions_api.h b/chrome/browser/extensions/api/sessions/sessions_api.h
index 9edf54648cf00e22f6874ab2d00dbe527bee03c7..cd1afeb4eef339ba6a5ddbb594d8a61cc618cbbc 100644
--- a/chrome/browser/extensions/api/sessions/sessions_api.h
+++ b/chrome/browser/extensions/api/sessions/sessions_api.h
@@ -38,10 +38,10 @@ class SessionsGetRecentlyClosedFunction : public ChromeSyncExtensionFunction {
api::tabs::Tab CreateTabModel(const sessions::TabRestoreService::Tab& tab,
int session_id,
int selected_index);
- scoped_ptr<api::windows::Window> CreateWindowModel(
+ std::unique_ptr<api::windows::Window> CreateWindowModel(
const sessions::TabRestoreService::Window& window,
int session_id);
- scoped_ptr<api::sessions::Session> CreateSessionModel(
+ std::unique_ptr<api::sessions::Session> CreateSessionModel(
const sessions::TabRestoreService::Entry* entry);
};
@@ -56,10 +56,10 @@ class SessionsGetDevicesFunction : public ChromeSyncExtensionFunction {
const sessions::SessionTab& tab,
int tab_index,
int selected_index);
- scoped_ptr<api::windows::Window> CreateWindowModel(
+ std::unique_ptr<api::windows::Window> CreateWindowModel(
const sessions::SessionWindow& window,
const std::string& session_tag);
- scoped_ptr<api::sessions::Session> CreateSessionModel(
+ std::unique_ptr<api::sessions::Session> CreateSessionModel(
const sessions::SessionWindow& window,
const std::string& session_tag);
api::sessions::Device CreateDeviceModel(
@@ -133,7 +133,7 @@ class SessionsAPI : public BrowserContextKeyedAPI,
static const bool kServiceIsNULLWhileTesting = true;
// Created lazily upon OnListenerAdded.
- scoped_ptr<SessionsEventRouter> sessions_event_router_;
+ std::unique_ptr<SessionsEventRouter> sessions_event_router_;
DISALLOW_COPY_AND_ASSIGN(SessionsAPI);
};
« no previous file with comments | « chrome/browser/extensions/api/sessions/session_id.cc ('k') | chrome/browser/extensions/api/sessions/sessions_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698