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

Unified Diff: content/test/browser_side_navigation_test_utils.cc

Issue 1874903002: Convert //content from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix indent 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: content/test/browser_side_navigation_test_utils.cc
diff --git a/content/test/browser_side_navigation_test_utils.cc b/content/test/browser_side_navigation_test_utils.cc
index 498884d0253cf217ddbc5966c6403a447b6cf3f9..0dbd60b6e25f11198eebd0ad274575609e2c80a2 100644
--- a/content/test/browser_side_navigation_test_utils.cc
+++ b/content/test/browser_side_navigation_test_utils.cc
@@ -35,13 +35,13 @@ class BrowserSideNavigationTestUtils {
StreamRegistry* stream_registry() { return stream_registry_.get();}
private:
- scoped_ptr<StreamRegistry> stream_registry_;
- scoped_ptr<TestNavigationURLLoaderFactory> loader_factory_;
+ std::unique_ptr<StreamRegistry> stream_registry_;
+ std::unique_ptr<TestNavigationURLLoaderFactory> loader_factory_;
DISALLOW_COPY_AND_ASSIGN(BrowserSideNavigationTestUtils);
};
-base::LazyInstance<scoped_ptr<BrowserSideNavigationTestUtils>>
+base::LazyInstance<std::unique_ptr<BrowserSideNavigationTestUtils>>
browser_side_navigation_test_utils;
} // namespace
@@ -57,7 +57,7 @@ void BrowserSideNavigationTearDown() {
browser_side_navigation_test_utils.Get().reset(nullptr);
}
-scoped_ptr<StreamHandle> MakeEmptyStream() {
+std::unique_ptr<StreamHandle> MakeEmptyStream() {
GURL url(std::string(url::kBlobScheme) + "://" + base::GenerateGUID());
StreamRegistry* stream_registry =
browser_side_navigation_test_utils.Get()->stream_registry();
« no previous file with comments | « content/test/browser_side_navigation_test_utils.h ('k') | content/test/content_browser_test_utils_internal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698