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

Unified Diff: components/dom_distiller/ios/distiller_page_ios.mm

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/ios/distiller_page_ios.mm
diff --git a/components/dom_distiller/ios/distiller_page_ios.mm b/components/dom_distiller/ios/distiller_page_ios.mm
index 0009e5bdad0416ad2b6c4947d953dcad4f841c3a..a20326d2b7e9152d4586bf6b66baded77b1e2646 100644
--- a/components/dom_distiller/ios/distiller_page_ios.mm
+++ b/components/dom_distiller/ios/distiller_page_ios.mm
@@ -103,9 +103,9 @@ void DistillerPageIOS::OnLoadURLDone(
}
void DistillerPageIOS::HandleJavaScriptResultString(NSString* result) {
- scoped_ptr<base::Value> resultValue = base::Value::CreateNullValue();
+ std::unique_ptr<base::Value> resultValue = base::Value::CreateNullValue();
if (result.length) {
- scoped_ptr<base::Value> dictionaryValue =
+ std::unique_ptr<base::Value> dictionaryValue =
base::JSONReader::Read(base::SysNSStringToUTF8(result));
if (dictionaryValue &&
dictionaryValue->IsType(base::Value::TYPE_DICTIONARY)) {

Powered by Google App Engine
This is Rietveld 408576698