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

Unified Diff: extensions/browser/verified_contents.cc

Issue 1909773002: Convert //extensions/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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: extensions/browser/verified_contents.cc
diff --git a/extensions/browser/verified_contents.cc b/extensions/browser/verified_contents.cc
index fc2471dc79a6c086a67ecec1e67bcbc36d9f5c89..6abca5ee7b94273af956782eb2599e82ec24af04 100644
--- a/extensions/browser/verified_contents.cc
+++ b/extensions/browser/verified_contents.cc
@@ -96,7 +96,7 @@ bool VerifiedContents::InitFrom(const base::FilePath& path,
if (!GetPayload(path, &payload, ignore_invalid_signature))
return false;
- scoped_ptr<base::Value> value(base::JSONReader::Read(payload));
+ std::unique_ptr<base::Value> value(base::JSONReader::Read(payload));
if (!value.get() || !value->IsType(Value::TYPE_DICTIONARY))
return false;
DictionaryValue* dictionary = static_cast<DictionaryValue*>(value.get());
@@ -235,7 +235,7 @@ bool VerifiedContents::GetPayload(const base::FilePath& path,
std::string contents;
if (!base::ReadFileToString(path, &contents))
return false;
- scoped_ptr<base::Value> value(base::JSONReader::Read(contents));
+ std::unique_ptr<base::Value> value(base::JSONReader::Read(contents));
if (!value.get() || !value->IsType(Value::TYPE_LIST))
return false;
ListValue* top_list = static_cast<ListValue*>(value.get());
« no previous file with comments | « extensions/browser/value_store/value_store_unittest.h ('k') | extensions/browser/web_ui_user_script_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698