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

Unified Diff: ui/views/test/default_platform_test_helper.cc

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr 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
« no previous file with comments | « ui/views/test/combobox_test_api.cc ('k') | ui/views/test/event_generator_delegate_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/test/default_platform_test_helper.cc
diff --git a/ui/views/test/default_platform_test_helper.cc b/ui/views/test/default_platform_test_helper.cc
index dc35a73f53b128e056b36e11414a01fd2e7d176a..8d498767e72355315831bb10abefca4da70da98a 100644
--- a/ui/views/test/default_platform_test_helper.cc
+++ b/ui/views/test/default_platform_test_helper.cc
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "base/memory/ptr_util.h"
#include "ui/views/test/platform_test_helper.h"
namespace views {
@@ -22,8 +23,8 @@ class DefaultPlatformTestHelper : public PlatformTestHelper {
} // namespace
// static
-scoped_ptr<PlatformTestHelper> PlatformTestHelper::Create() {
- return make_scoped_ptr(new DefaultPlatformTestHelper);
+std::unique_ptr<PlatformTestHelper> PlatformTestHelper::Create() {
+ return base::WrapUnique(new DefaultPlatformTestHelper);
}
} // namespace views
« no previous file with comments | « ui/views/test/combobox_test_api.cc ('k') | ui/views/test/event_generator_delegate_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698