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

Unified Diff: chrome/common/extensions/api/spellcheck/spellcheck_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/spellcheck/spellcheck_handler.cc
diff --git a/chrome/common/extensions/api/spellcheck/spellcheck_handler.cc b/chrome/common/extensions/api/spellcheck/spellcheck_handler.cc
index 53d4acff304d8abea798013ed0f7e30cb534d449..f7e7867e466d03c7de6449a3cbc39c358bdc697e 100644
--- a/chrome/common/extensions/api/spellcheck/spellcheck_handler.cc
+++ b/chrome/common/extensions/api/spellcheck/spellcheck_handler.cc
@@ -4,6 +4,8 @@
#include "chrome/common/extensions/api/spellcheck/spellcheck_handler.h"
+#include <memory>
+
#include "base/strings/utf_string_conversions.h"
#include "extensions/common/manifest_constants.h"
@@ -31,7 +33,7 @@ bool SpellcheckHandler::Parse(Extension* extension, base::string16* error) {
*error = base::ASCIIToUTF16(errors::kInvalidSpellcheck);
return false;
}
- scoped_ptr<SpellcheckDictionaryInfo> spellcheck_info(
+ std::unique_ptr<SpellcheckDictionaryInfo> spellcheck_info(
new SpellcheckDictionaryInfo);
if (!spellcheck_value->HasKey(keys::kSpellcheckDictionaryLanguage) ||
!spellcheck_value->GetString(keys::kSpellcheckDictionaryLanguage,

Powered by Google App Engine
This is Rietveld 408576698