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

Unified Diff: ash/keyboard/keyboard_ui.cc

Issue 1867223004: Convert //ash from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: ash/keyboard/keyboard_ui.cc
diff --git a/ash/keyboard/keyboard_ui.cc b/ash/keyboard/keyboard_ui.cc
index f760575f2bf7efe78ef9593e57344ea0e391d7ae..fb3cc15d0f0e2412a0ccf39e0ebe22d0e76a62bf 100644
--- a/ash/keyboard/keyboard_ui.cc
+++ b/ash/keyboard/keyboard_ui.cc
@@ -9,6 +9,7 @@
#include "ash/shell.h"
#include "ash/system/tray/system_tray_notifier.h"
#include "ash/system/tray_accessibility.h"
+#include "base/memory/ptr_util.h"
#include "ui/keyboard/keyboard_controller.h"
namespace ash {
@@ -51,8 +52,8 @@ class KeyboardUIImpl : public KeyboardUI, public AccessibilityObserver {
KeyboardUI::~KeyboardUI() {}
// static
-scoped_ptr<KeyboardUI> KeyboardUI::Create() {
- return make_scoped_ptr(new KeyboardUIImpl);
+std::unique_ptr<KeyboardUI> KeyboardUI::Create() {
+ return base::WrapUnique(new KeyboardUIImpl);
}
void KeyboardUI::AddObserver(KeyboardUIObserver* observer) {

Powered by Google App Engine
This is Rietveld 408576698