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

Unified Diff: chrome/common/extensions/api/url_handlers/url_handlers_parser.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/api/url_handlers/url_handlers_parser.cc
diff --git a/chrome/common/extensions/api/url_handlers/url_handlers_parser.cc b/chrome/common/extensions/api/url_handlers/url_handlers_parser.cc
index 898547f7909c802cbe294aeacae61a4c9c97354b..a5829a2ea4c3ea1792b10cce26bb8fb0624c397e 100644
--- a/chrome/common/extensions/api/url_handlers/url_handlers_parser.cc
+++ b/chrome/common/extensions/api/url_handlers/url_handlers_parser.cc
@@ -4,8 +4,9 @@
#include "chrome/common/extensions/api/url_handlers/url_handlers_parser.h"
+#include <memory>
+
#include "base/command_line.h"
-#include "base/memory/scoped_ptr.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
@@ -133,7 +134,7 @@ bool ParseUrlHandler(const std::string& handler_id,
}
bool UrlHandlersParser::Parse(Extension* extension, base::string16* error) {
- scoped_ptr<UrlHandlers> info(new UrlHandlers);
+ std::unique_ptr<UrlHandlers> info(new UrlHandlers);
const base::DictionaryValue* all_handlers = NULL;
if (!extension->manifest()->GetDictionary(
mkeys::kUrlHandlers, &all_handlers)) {

Powered by Google App Engine
This is Rietveld 408576698