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

Unified Diff: chrome/common/extensions/manifest_handlers/copresence_manifest.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/copresence_manifest.cc
diff --git a/chrome/common/extensions/manifest_handlers/copresence_manifest.cc b/chrome/common/extensions/manifest_handlers/copresence_manifest.cc
index dca92f2a3adbf6104f709bdf4fa5daed05c61c42..486d07fb0f7f2689f579dce7f60f2ff196a11da5 100644
--- a/chrome/common/extensions/manifest_handlers/copresence_manifest.cc
+++ b/chrome/common/extensions/manifest_handlers/copresence_manifest.cc
@@ -4,6 +4,7 @@
#include "chrome/common/extensions/manifest_handlers/copresence_manifest.h"
+#include <memory>
#include <string>
#include <vector>
@@ -29,7 +30,8 @@ bool CopresenceManifestHandler::Parse(Extension* extension,
return false;
}
- scoped_ptr<CopresenceManifestData> manifest_data(new CopresenceManifestData);
+ std::unique_ptr<CopresenceManifestData> manifest_data(
+ new CopresenceManifestData);
if (!copresence_config->GetString(manifest_values::kApiKey,
&manifest_data->api_key) ||
manifest_data->api_key.empty()) {

Powered by Google App Engine
This is Rietveld 408576698