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

Unified Diff: components/mus/public/cpp/window_manager_delegate.h

Issue 1906623003: Convert //components/mus 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
« no previous file with comments | « components/mus/public/cpp/window.h ('k') | components/mus/public/cpp/window_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/cpp/window_manager_delegate.h
diff --git a/components/mus/public/cpp/window_manager_delegate.h b/components/mus/public/cpp/window_manager_delegate.h
index 42cc651e644535177f18257772f834eeacc1b867..11b262c0957901a635c15f2d8e87cc3106315f8f 100644
--- a/components/mus/public/cpp/window_manager_delegate.h
+++ b/components/mus/public/cpp/window_manager_delegate.h
@@ -8,10 +8,10 @@
#include <stdint.h>
#include <map>
+#include <memory>
#include <vector>
#include "base/callback_forward.h"
-#include "base/memory/scoped_ptr.h"
#include "components/mus/public/interfaces/input_event_matcher.mojom.h"
#include "components/mus/public/interfaces/input_events.mojom.h"
#include "components/mus/public/interfaces/window_manager_constants.mojom.h"
@@ -72,9 +72,10 @@ class WindowManagerDelegate {
// A client requested the shared property named |name| to change to
// |new_data|. Return true to allow the change to |new_data|, false
// otherwise.
- virtual bool OnWmSetProperty(Window* window,
- const std::string& name,
- scoped_ptr<std::vector<uint8_t>>* new_data) = 0;
+ virtual bool OnWmSetProperty(
+ Window* window,
+ const std::string& name,
+ std::unique_ptr<std::vector<uint8_t>>* new_data) = 0;
// A client has requested a new top level window. The delegate should create
// and parent the window appropriately and return it. |properties| is the
« no previous file with comments | « components/mus/public/cpp/window.h ('k') | components/mus/public/cpp/window_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698