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

Unified Diff: chrome/common/extensions/api/speech/tts_engine_manifest_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/speech/tts_engine_manifest_handler.cc
diff --git a/chrome/common/extensions/api/speech/tts_engine_manifest_handler.cc b/chrome/common/extensions/api/speech/tts_engine_manifest_handler.cc
index 2ecb05c533aa2558afb284d6788b4633b4284871..ccc891be29681d341905f95f62e02a93e54a2750 100644
--- a/chrome/common/extensions/api/speech/tts_engine_manifest_handler.cc
+++ b/chrome/common/extensions/api/speech/tts_engine_manifest_handler.cc
@@ -6,7 +6,8 @@
#include <stddef.h>
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
@@ -53,7 +54,7 @@ TtsEngineManifestHandler::~TtsEngineManifestHandler() {
bool TtsEngineManifestHandler::Parse(Extension* extension,
base::string16* error) {
- scoped_ptr<TtsVoices> info(new TtsVoices);
+ std::unique_ptr<TtsVoices> info(new TtsVoices);
const base::DictionaryValue* tts_dict = NULL;
if (!extension->manifest()->GetDictionary(keys::kTtsEngine, &tts_dict)) {
*error = base::ASCIIToUTF16(errors::kInvalidTts);
« no previous file with comments | « chrome/common/extensions/api/plugins/plugins_handler.cc ('k') | chrome/common/extensions/api/spellcheck/spellcheck_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698