| Index: components/spellcheck/renderer/spellcheck_unittest.cc
|
| diff --git a/components/spellcheck/renderer/spellcheck_unittest.cc b/components/spellcheck/renderer/spellcheck_unittest.cc
|
| index 3804513db9c426bccc9a7e7d09ec74da1893436c..d56e603bf3a3ef4e9a724da4682857fc712feb9b 100644
|
| --- a/components/spellcheck/renderer/spellcheck_unittest.cc
|
| +++ b/components/spellcheck/renderer/spellcheck_unittest.cc
|
| @@ -12,6 +12,7 @@
|
| #include "base/files/file_path.h"
|
| #include "base/files/file_util.h"
|
| #include "base/macros.h"
|
| +#include "base/memory/ptr_util.h"
|
| #include "base/message_loop/message_loop.h"
|
| #include "base/path_service.h"
|
| #include "base/run_loop.h"
|
| @@ -74,7 +75,7 @@ class SpellCheckTest : public testing::Test {
|
| #if defined(OS_MACOSX)
|
| // TODO(groby): Forcing spellcheck to use hunspell, even on OSX.
|
| // Instead, tests should exercise individual spelling engines.
|
| - spell_check_->languages_.push_back(new SpellcheckLanguage());
|
| + spell_check_->languages_.push_back(base::MakeUnique<SpellcheckLanguage>());
|
| spell_check_->languages_.front()->platform_spelling_engine_.reset(
|
| new HunspellEngine);
|
| spell_check_->languages_.front()->Init(std::move(file), language);
|
|
|