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

Side by Side Diff: cc/resources/memory_history.cc

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 unified diff | Download patch
« no previous file with comments | « cc/resources/memory_history.h ('k') | cc/resources/resource_pool.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/resources/memory_history.h" 5 #include "cc/resources/memory_history.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/memory/ptr_util.h"
10
9 namespace cc { 11 namespace cc {
10 12
11 // static 13 // static
12 scoped_ptr<MemoryHistory> MemoryHistory::Create() { 14 std::unique_ptr<MemoryHistory> MemoryHistory::Create() {
13 return make_scoped_ptr(new MemoryHistory()); 15 return base::WrapUnique(new MemoryHistory());
14 } 16 }
15 17
16 MemoryHistory::MemoryHistory() {} 18 MemoryHistory::MemoryHistory() {}
17 19
18 void MemoryHistory::SaveEntry(const MemoryHistory::Entry& entry) { 20 void MemoryHistory::SaveEntry(const MemoryHistory::Entry& entry) {
19 ring_buffer_.SaveToBuffer(entry); 21 ring_buffer_.SaveToBuffer(entry);
20 } 22 }
21 23
22 } // namespace cc 24 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/memory_history.h ('k') | cc/resources/resource_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698