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

Unified Diff: chrome/common/extensions/api/omnibox/omnibox_handler.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/omnibox/omnibox_handler.cc
diff --git a/chrome/common/extensions/api/omnibox/omnibox_handler.cc b/chrome/common/extensions/api/omnibox/omnibox_handler.cc
index a934e7096277138b03f221886aa6f1b933be54b4..872ea1253da49b77d0d6e9c9fb092a063e114b8a 100644
--- a/chrome/common/extensions/api/omnibox/omnibox_handler.cc
+++ b/chrome/common/extensions/api/omnibox/omnibox_handler.cc
@@ -4,7 +4,8 @@
#include "chrome/common/extensions/api/omnibox/omnibox_handler.h"
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
@@ -35,7 +36,7 @@ OmniboxHandler::~OmniboxHandler() {
}
bool OmniboxHandler::Parse(Extension* extension, base::string16* error) {
- scoped_ptr<OmniboxInfo> info(new OmniboxInfo);
+ std::unique_ptr<OmniboxInfo> info(new OmniboxInfo);
const base::DictionaryValue* dict = NULL;
if (!extension->manifest()->GetDictionary(manifest_keys::kOmnibox,
&dict) ||

Powered by Google App Engine
This is Rietveld 408576698