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

Unified Diff: ui/events/ozone/layout/keyboard_layout_engine_manager.h

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
Index: ui/events/ozone/layout/keyboard_layout_engine_manager.h
diff --git a/ui/events/ozone/layout/keyboard_layout_engine_manager.h b/ui/events/ozone/layout/keyboard_layout_engine_manager.h
index b63e2e161bad486746b677d41ae4c0db666083ff..641ca816ec7e694306e42a3912cda68ef6cbaee0 100644
--- a/ui/events/ozone/layout/keyboard_layout_engine_manager.h
+++ b/ui/events/ozone/layout/keyboard_layout_engine_manager.h
@@ -5,8 +5,9 @@
#ifndef UI_OZONE_PUBLIC_KEYBOARD_LAYOUT_ENGINE_MANAGER_H_
#define UI_OZONE_PUBLIC_KEYBOARD_LAYOUT_ENGINE_MANAGER_H_
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "ui/events/ozone/layout/events_ozone_layout_export.h"
namespace ui {
@@ -17,14 +18,15 @@ class EVENTS_OZONE_LAYOUT_EXPORT KeyboardLayoutEngineManager {
public:
virtual ~KeyboardLayoutEngineManager();
- static void SetKeyboardLayoutEngine(scoped_ptr<KeyboardLayoutEngine> engine);
+ static void SetKeyboardLayoutEngine(
+ std::unique_ptr<KeyboardLayoutEngine> engine);
static KeyboardLayoutEngine* GetKeyboardLayoutEngine();
private:
KeyboardLayoutEngineManager(KeyboardLayoutEngine* engine);
static KeyboardLayoutEngineManager* instance_;
- scoped_ptr<KeyboardLayoutEngine> keyboard_layout_engine_;
+ std::unique_ptr<KeyboardLayoutEngine> keyboard_layout_engine_;
DISALLOW_COPY_AND_ASSIGN(KeyboardLayoutEngineManager);
};

Powered by Google App Engine
This is Rietveld 408576698