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

Unified Diff: remoting/host/host_extension_session_manager.h

Issue 2627433003: Remove ScopedVector from remoting/. (Closed)
Patch Set: rev Created 3 years, 11 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 | « remoting/host/chromoting_host.cc ('k') | remoting/host/host_extension_session_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/host_extension_session_manager.h
diff --git a/remoting/host/host_extension_session_manager.h b/remoting/host/host_extension_session_manager.h
index 6925b8dfcde1adbc15ac581c4aa3ff93921f4004..e26ec08f1c1af045ee9b1ff52c6effd7d979d481 100644
--- a/remoting/host/host_extension_session_manager.h
+++ b/remoting/host/host_extension_session_manager.h
@@ -5,11 +5,11 @@
#ifndef REMOTING_HOST_HOST_EXTENSION_SESSION_MANAGER_H_
#define REMOTING_HOST_HOST_EXTENSION_SESSION_MANAGER_H_
+#include <memory>
#include <string>
#include <vector>
#include "base/macros.h"
-#include "base/memory/scoped_vector.h"
namespace remoting {
@@ -27,7 +27,7 @@ class ExtensionMessage;
// set of capabilities negotiated between client and host.
class HostExtensionSessionManager {
public:
- typedef std::vector<HostExtension*> HostExtensions;
+ using HostExtensions = std::vector<HostExtension*>;
// Creates an extension manager for the specified |extensions|.
HostExtensionSessionManager(const HostExtensions& extensions,
@@ -48,7 +48,8 @@ class HostExtensionSessionManager {
bool OnExtensionMessage(const protocol::ExtensionMessage& message);
private:
- typedef ScopedVector<HostExtensionSession> HostExtensionSessions;
+ using HostExtensionSessions =
+ std::vector<std::unique_ptr<HostExtensionSession>>;
// Passed to HostExtensionSessions to allow them to send messages,
// disconnect the session, etc.
« no previous file with comments | « remoting/host/chromoting_host.cc ('k') | remoting/host/host_extension_session_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698