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

Unified Diff: content/public/test/mock_render_process_host.h

Issue 2749203002: Remove ScopedVector from content/. (Closed)
Patch Set: Remove ScopedVector from content/. Created 3 years, 9 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: content/public/test/mock_render_process_host.h
diff --git a/content/public/test/mock_render_process_host.h b/content/public/test/mock_render_process_host.h
index 10ef44d0eb1f83274bb08b63c4fba51bf0991396..8126ff84fa1387037771597810151e0f78ddc4fd 100644
--- a/content/public/test/mock_render_process_host.h
+++ b/content/public/test/mock_render_process_host.h
@@ -9,9 +9,9 @@
#include <stdint.h>
#include <memory>
#include <utility>
+#include <vector>
#include "base/macros.h"
-#include "base/memory/scoped_vector.h"
#include "base/metrics/persistent_memory_allocator.h"
#include "base/observer_list.h"
#include "content/public/browser/render_process_host.h"
@@ -192,7 +192,7 @@ class MockRenderProcessHostFactory : public RenderProcessHostFactory {
// A list of MockRenderProcessHosts created by this object. This list is used
// for deleting all MockRenderProcessHosts that have not deleted by a test in
// the destructor and prevent them from being leaked.
- mutable ScopedVector<MockRenderProcessHost> processes_;
+ mutable std::vector<std::unique_ptr<MockRenderProcessHost>> processes_;
DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory);
};

Powered by Google App Engine
This is Rietveld 408576698