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

Unified Diff: chrome/common/extensions/manifest_handlers/app_icon_color_info.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/app_icon_color_info.cc
diff --git a/chrome/common/extensions/manifest_handlers/app_icon_color_info.cc b/chrome/common/extensions/manifest_handlers/app_icon_color_info.cc
index b7a2d5a57d82afc42e75192e98778000319dc3f9..26822b2be42d28b52aa7fca84d51c4e166001cc6 100644
--- a/chrome/common/extensions/manifest_handlers/app_icon_color_info.cc
+++ b/chrome/common/extensions/manifest_handlers/app_icon_color_info.cc
@@ -4,6 +4,8 @@
#include "chrome/common/extensions/manifest_handlers/app_icon_color_info.h"
+#include <memory>
+
#include "base/lazy_instance.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
@@ -53,7 +55,7 @@ AppIconColorHandler::~AppIconColorHandler() {
}
bool AppIconColorHandler::Parse(Extension* extension, base::string16* error) {
- scoped_ptr<AppIconColorInfo> app_icon_color_info(new AppIconColorInfo);
+ std::unique_ptr<AppIconColorInfo> app_icon_color_info(new AppIconColorInfo);
const base::Value* temp = NULL;
if (extension->manifest()->Get(keys::kAppIconColor, &temp)) {

Powered by Google App Engine
This is Rietveld 408576698