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

Unified Diff: extensions/common/manifest_handlers/shared_module_info.cc

Issue 1908953003: Convert //extensions/{common,shell} 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: extensions/common/manifest_handlers/shared_module_info.cc
diff --git a/extensions/common/manifest_handlers/shared_module_info.cc b/extensions/common/manifest_handlers/shared_module_info.cc
index 87c8e879d5ebe0b8b6e57e4cb2ee249ce30a35f9..25679e1f7781705c95e75e57b1d32b2d6b28c16f 100644
--- a/extensions/common/manifest_handlers/shared_module_info.cc
+++ b/extensions/common/manifest_handlers/shared_module_info.cc
@@ -6,9 +6,10 @@
#include <stddef.h>
+#include <memory>
+
#include "base/lazy_instance.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
@@ -206,7 +207,7 @@ SharedModuleHandler::~SharedModuleHandler() {
}
bool SharedModuleHandler::Parse(Extension* extension, base::string16* error) {
- scoped_ptr<SharedModuleInfo> info(new SharedModuleInfo);
+ std::unique_ptr<SharedModuleInfo> info(new SharedModuleInfo);
if (!info->Parse(extension, error))
return false;
extension->SetManifestData(kSharedModule, info.release());

Powered by Google App Engine
This is Rietveld 408576698