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

Unified Diff: cc/base/region.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/base/region.h ('k') | cc/blink/scrollbar_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/region.cc
diff --git a/cc/base/region.cc b/cc/base/region.cc
index 8332f9ad67cdecfb9bccae335bbf277df2ebecfb..1a5823a7f037b08f571b88028e3cf7165d387215 100644
--- a/cc/base/region.cc
+++ b/cc/base/region.cc
@@ -120,8 +120,8 @@ std::string Region::ToString() const {
return result;
}
-scoped_ptr<base::Value> Region::AsValue() const {
- scoped_ptr<base::ListValue> result(new base::ListValue());
+std::unique_ptr<base::Value> Region::AsValue() const {
+ std::unique_ptr<base::ListValue> result(new base::ListValue());
for (Iterator it(*this); it.has_rect(); it.next()) {
gfx::Rect rect(it.rect());
result->AppendInteger(rect.x());
« no previous file with comments | « cc/base/region.h ('k') | cc/blink/scrollbar_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698