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

Unified Diff: ui/views/mus/input_method_mus_unittest.cc

Issue 2374883002: views/mus: Change 'reset(new' to base::MakeUnqiue. (Closed)
Patch Set: Created 4 years, 3 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/mus/input_method_mus.cc ('k') | ui/views/mus/pointer_watcher_event_router_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/input_method_mus_unittest.cc
diff --git a/ui/views/mus/input_method_mus_unittest.cc b/ui/views/mus/input_method_mus_unittest.cc
index 0c0e3c661054a1963fab7f2af16a2ccf23188c65..618a46b3ef82da40d621ddd153c70d3b3bba6126 100644
--- a/ui/views/mus/input_method_mus_unittest.cc
+++ b/ui/views/mus/input_method_mus_unittest.cc
@@ -4,6 +4,8 @@
#include "ui/views/mus/input_method_mus.h"
+#include <memory>
+
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -37,7 +39,7 @@ class TestTextInputClient : public ui::DummyTextInputClient {
~TestTextInputClient() override {}
ui::KeyEvent* WaitUntilInputReceieved() {
- run_loop_.reset(new base::RunLoop);
+ run_loop_ = base::MakeUnique<base::RunLoop>();
run_loop_->Run();
run_loop_.reset();
« no previous file with comments | « ui/views/mus/input_method_mus.cc ('k') | ui/views/mus/pointer_watcher_event_router_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698