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

Unified Diff: remoting/host/resizing_host_observer.h

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU 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 | « remoting/host/remoting_me2me_host.cc ('k') | remoting/host/resizing_host_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/resizing_host_observer.h
diff --git a/remoting/host/resizing_host_observer.h b/remoting/host/resizing_host_observer.h
index e2711817bb9c5d73ab033cdb65c7bb2a3faa2200..137246b13ef94cf540c88cb135461a696fd9edcb 100644
--- a/remoting/host/resizing_host_observer.h
+++ b/remoting/host/resizing_host_observer.h
@@ -7,10 +7,11 @@
#include <stddef.h>
+#include <memory>
+
#include "base/callback.h"
#include "base/compiler_specific.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/time/time.h"
#include "base/timer/timer.h"
@@ -29,7 +30,8 @@ class DesktopResizer;
// the original desktop size.
class ResizingHostObserver : public ScreenControls {
public:
- explicit ResizingHostObserver(scoped_ptr<DesktopResizer> desktop_resizer);
+ explicit ResizingHostObserver(
+ std::unique_ptr<DesktopResizer> desktop_resizer);
~ResizingHostObserver() override;
// ScreenControls interface.
@@ -42,7 +44,7 @@ class ResizingHostObserver : public ScreenControls {
const base::Callback<base::Time(void)>& now_function);
private:
- scoped_ptr<DesktopResizer> desktop_resizer_;
+ std::unique_ptr<DesktopResizer> desktop_resizer_;
ScreenResolution original_resolution_;
// State to manage rate-limiting of desktop resizes.
« no previous file with comments | « remoting/host/remoting_me2me_host.cc ('k') | remoting/host/resizing_host_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698