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

Unified Diff: ui/views/test/combobox_test_api.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/style/platform_style_mac.mm ('k') | ui/views/test/default_platform_test_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/test/combobox_test_api.cc
diff --git a/ui/views/test/combobox_test_api.cc b/ui/views/test/combobox_test_api.cc
index 5a897be909e8f3f7a1e326ead3c253f333441958..088885f74c52af520231a78052fadf657f29929e 100644
--- a/ui/views/test/combobox_test_api.cc
+++ b/ui/views/test/combobox_test_api.cc
@@ -7,6 +7,7 @@
#include <stdint.h>
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "ui/base/models/menu_model.h"
#include "ui/views/controls/combobox/combobox.h"
#include "ui/views/controls/menu/menu_runner.h"
@@ -50,7 +51,7 @@ void ComboboxTestApi::InstallTestMenuRunner(int* menu_show_count) {
new MenuRunner(menu_model(), MenuRunner::COMBOBOX));
test::MenuRunnerTestAPI test_api(combobox_->menu_runner_.get());
test_api.SetMenuRunnerHandler(
- make_scoped_ptr(new TestMenuRunnerHandler(menu_show_count)));
+ base::WrapUnique(new TestMenuRunnerHandler(menu_show_count)));
}
gfx::Size ComboboxTestApi::content_size() {
« no previous file with comments | « ui/views/style/platform_style_mac.mm ('k') | ui/views/test/default_platform_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698