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

Unified Diff: remoting/host/chromeos/clipboard_aura.cc

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/chromeos/clipboard_aura.h ('k') | remoting/host/chromeos/clipboard_aura_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/chromeos/clipboard_aura.cc
diff --git a/remoting/host/chromeos/clipboard_aura.cc b/remoting/host/chromeos/clipboard_aura.cc
index ef0438b96838ccc77a2e41814e618fa29ab3979c..02b593b05fc75bd5de01d0e5bf50dd33b0982209 100644
--- a/remoting/host/chromeos/clipboard_aura.cc
+++ b/remoting/host/chromeos/clipboard_aura.cc
@@ -6,6 +6,7 @@
#include <utility>
+#include "base/memory/ptr_util.h"
#include "base/strings/utf_string_conversions.h"
#include "remoting/base/constants.h"
#include "remoting/proto/event.pb.h"
@@ -32,7 +33,7 @@ ClipboardAura::~ClipboardAura() {
}
void ClipboardAura::Start(
- scoped_ptr<protocol::ClipboardStub> client_clipboard) {
+ std::unique_ptr<protocol::ClipboardStub> client_clipboard) {
DCHECK(thread_checker_.CalledOnValidThread());
client_clipboard_ = std::move(client_clipboard);
@@ -90,8 +91,8 @@ void ClipboardAura::CheckClipboardForChanges() {
client_clipboard_->InjectClipboardEvent(event);
}
-scoped_ptr<Clipboard> Clipboard::Create() {
- return make_scoped_ptr(new ClipboardAura());
+std::unique_ptr<Clipboard> Clipboard::Create() {
+ return base::WrapUnique(new ClipboardAura());
}
} // namespace remoting
« no previous file with comments | « remoting/host/chromeos/clipboard_aura.h ('k') | remoting/host/chromeos/clipboard_aura_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698