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

Unified Diff: chrome/common/extensions/manifest_handlers/app_launch_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_launch_info.cc
diff --git a/chrome/common/extensions/manifest_handlers/app_launch_info.cc b/chrome/common/extensions/manifest_handlers/app_launch_info.cc
index 1f219789d105a4e4da678eac6343eca051687341..6ee7e3439a9cf39a27bce54d3bdd88e73369bf76 100644
--- a/chrome/common/extensions/manifest_handlers/app_launch_info.cc
+++ b/chrome/common/extensions/manifest_handlers/app_launch_info.cc
@@ -4,10 +4,11 @@
#include "chrome/common/extensions/manifest_handlers/app_launch_info.h"
+#include <memory>
+
#include "base/command_line.h"
#include "base/lazy_instance.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
#include "chrome/common/chrome_switches.h"
@@ -301,7 +302,7 @@ AppLaunchManifestHandler::~AppLaunchManifestHandler() {
bool AppLaunchManifestHandler::Parse(Extension* extension,
base::string16* error) {
- scoped_ptr<AppLaunchInfo> info(new AppLaunchInfo);
+ std::unique_ptr<AppLaunchInfo> info(new AppLaunchInfo);
if (!info->Parse(extension, error))
return false;
extension->SetManifestData(keys::kLaunch, info.release());

Powered by Google App Engine
This is Rietveld 408576698