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

Unified Diff: components/dom_distiller/core/page_features.cc

Issue 1879613003: Convert //components/dom_distiller from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: components/dom_distiller/core/page_features.cc
diff --git a/components/dom_distiller/core/page_features.cc b/components/dom_distiller/core/page_features.cc
index e28cf01c45090a2c8bd67eb6fab7a196fd412bcc..a222bd3f2d6bd395640fbb018a01d5b7cba39ddf 100644
--- a/components/dom_distiller/core/page_features.cc
+++ b/components/dom_distiller/core/page_features.cc
@@ -6,10 +6,10 @@
#include <stddef.h>
+#include <memory>
#include <string>
#include "base/json/json_reader.h"
-#include "base/memory/scoped_ptr.h"
#include "third_party/re2/src/re2/re2.h"
#include "url/gurl.h"
@@ -152,7 +152,7 @@ std::vector<double> CalculateDerivedFeaturesFromJSON(
return std::vector<double>();
}
- scoped_ptr<base::Value> json = base::JSONReader::Read(stringified);
+ std::unique_ptr<base::Value> json = base::JSONReader::Read(stringified);
if (!json) {
return std::vector<double>();
}
« no previous file with comments | « components/dom_distiller/core/fake_distiller_page.h ('k') | components/dom_distiller/core/page_features_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698