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

Unified Diff: ui/snapshot/snapshot_async.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
« no previous file with comments | « ui/snapshot/snapshot_android.cc ('k') | ui/snapshot/snapshot_async.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/snapshot/snapshot_async.h
diff --git a/ui/snapshot/snapshot_async.h b/ui/snapshot/snapshot_async.h
index 1c53db9b73469f6eb0a98a00f1ec8c3159a2f53b..364f76c26d9fb88d9bf89aee28062e917f0207d8 100644
--- a/ui/snapshot/snapshot_async.h
+++ b/ui/snapshot/snapshot_async.h
@@ -5,8 +5,9 @@
#ifndef UI_SNAPSHOT_SNAPSHOT_ASYNC_H_
#define UI_SNAPSHOT_SNAPSHOT_ASYNC_H_
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "cc/output/copy_output_result.h"
#include "ui/snapshot/snapshot.h"
@@ -28,12 +29,12 @@ class SnapshotAsync {
const GrabWindowSnapshotAsyncCallback& callback,
const gfx::Size& target_size,
scoped_refptr<base::TaskRunner> background_task_runner,
- scoped_ptr<cc::CopyOutputResult> result);
+ std::unique_ptr<cc::CopyOutputResult> result);
static void EncodeCopyOutputResult(
const GrabWindowSnapshotAsyncPNGCallback& callback,
scoped_refptr<base::TaskRunner> background_task_runner,
- scoped_ptr<cc::CopyOutputResult> result);
+ std::unique_ptr<cc::CopyOutputResult> result);
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(SnapshotAsync);
« no previous file with comments | « ui/snapshot/snapshot_android.cc ('k') | ui/snapshot/snapshot_async.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698