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

Unified Diff: content/test/test_web_contents_factory.cc

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/test/test_web_contents_factory.cc
diff --git a/content/test/test_web_contents_factory.cc b/content/test/test_web_contents_factory.cc
index 0cbbbe83f94447a2f4e413a039751e4a0d1e23ec..d27e6a852222cff4422abfe47642db45ab651cc4 100644
--- a/content/test/test_web_contents_factory.cc
+++ b/content/test/test_web_contents_factory.cc
@@ -4,6 +4,7 @@
#include "content/public/test/test_web_contents_factory.h"
+#include "base/memory/ptr_util.h"
#include "base/run_loop.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/test_renderer_host.h"
@@ -29,10 +30,10 @@ TestWebContentsFactory::~TestWebContentsFactory() {
WebContents* TestWebContentsFactory::CreateWebContents(
BrowserContext* context) {
- web_contents_.push_back(
- WebContentsTester::CreateTestWebContents(context, nullptr));
+ web_contents_.push_back(base::WrapUnique(
+ WebContentsTester::CreateTestWebContents(context, nullptr)));
DCHECK(web_contents_.back());
- return web_contents_.back();
+ return web_contents_.back().get();
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698