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

Unified Diff: cc/test/fake_recording_source.h

Issue 1866203004: Convert //cc from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptrcc: rebase 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 | « cc/test/fake_proxy.h ('k') | cc/test/fake_resource_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_recording_source.h
diff --git a/cc/test/fake_recording_source.h b/cc/test/fake_recording_source.h
index 69216c70344cfec1a8767d127102ce95be58fdb2..089deb7ac647836922b500bc5463c4899aa1401f 100644
--- a/cc/test/fake_recording_source.h
+++ b/cc/test/fake_recording_source.h
@@ -26,18 +26,20 @@ class FakeRecordingSource : public RecordingSource {
FakeRecordingSource();
~FakeRecordingSource() override {}
- static scoped_ptr<FakeRecordingSource> CreateRecordingSource(
+ static std::unique_ptr<FakeRecordingSource> CreateRecordingSource(
const gfx::Rect& recorded_viewport,
const gfx::Size& layer_bounds) {
- scoped_ptr<FakeRecordingSource> recording_source(new FakeRecordingSource);
+ std::unique_ptr<FakeRecordingSource> recording_source(
+ new FakeRecordingSource);
recording_source->SetRecordedViewport(recorded_viewport);
recording_source->SetLayerBounds(layer_bounds);
return recording_source;
}
- static scoped_ptr<FakeRecordingSource> CreateFilledRecordingSource(
+ static std::unique_ptr<FakeRecordingSource> CreateFilledRecordingSource(
const gfx::Size& layer_bounds) {
- scoped_ptr<FakeRecordingSource> recording_source(new FakeRecordingSource);
+ std::unique_ptr<FakeRecordingSource> recording_source(
+ new FakeRecordingSource);
recording_source->SetRecordedViewport(gfx::Rect(layer_bounds));
recording_source->SetLayerBounds(layer_bounds);
return recording_source;
« no previous file with comments | « cc/test/fake_proxy.h ('k') | cc/test/fake_resource_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698