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

Unified Diff: chrome/common/extensions/manifest_handlers/linked_app_icons.cc

Issue 1880143002: Convert chrome/common 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: chrome/common/extensions/manifest_handlers/linked_app_icons.cc
diff --git a/chrome/common/extensions/manifest_handlers/linked_app_icons.cc b/chrome/common/extensions/manifest_handlers/linked_app_icons.cc
index 8d486c78e8b27a2d8569de2a211464becc3e443f..5f4945ebc9244b4743c1028049e04925154d797e 100644
--- a/chrome/common/extensions/manifest_handlers/linked_app_icons.cc
+++ b/chrome/common/extensions/manifest_handlers/linked_app_icons.cc
@@ -4,6 +4,8 @@
#include "chrome/common/extensions/manifest_handlers/linked_app_icons.h"
+#include <memory>
+
#include "base/lazy_instance.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
@@ -55,7 +57,7 @@ LinkedAppIconsHandler::~LinkedAppIconsHandler() {
}
bool LinkedAppIconsHandler::Parse(Extension* extension, base::string16* error) {
- scoped_ptr<LinkedAppIcons> linked_app_icons(new LinkedAppIcons);
+ std::unique_ptr<LinkedAppIcons> linked_app_icons(new LinkedAppIcons);
const base::Value* icons_value = nullptr;
const base::ListValue* icons_list = nullptr;

Powered by Google App Engine
This is Rietveld 408576698