Index: chrome/browser/spellchecker/spellcheck_service_unittest.cc |
diff --git a/chrome/browser/spellchecker/spellcheck_service_unittest.cc b/chrome/browser/spellchecker/spellcheck_service_unittest.cc |
index 7cbc67bb7ac92f50c66541ee1dff2d3e84dba1f7..f2fd9f0fff6ec1c0396a87c99f5a38026f8f5f6a 100644 |
--- a/chrome/browser/spellchecker/spellcheck_service_unittest.cc |
+++ b/chrome/browser/spellchecker/spellcheck_service_unittest.cc |
@@ -6,14 +6,16 @@ |
#include <algorithm> |
+#include "base/memory/scoped_ptr.h" |
#include "chrome/browser/spellchecker/feedback_sender.h" |
#include "chrome/browser/spellchecker/spellcheck_factory.h" |
#include "chrome/test/base/testing_profile.h" |
#include "content/public/test/test_browser_thread_bundle.h" |
#include "testing/gtest/include/gtest/gtest.h" |
-static KeyedService* BuildSpellcheckService(content::BrowserContext* profile) { |
- return new SpellcheckService(static_cast<Profile*>(profile)); |
+static scoped_ptr<KeyedService> BuildSpellcheckService( |
+ content::BrowserContext* profile) { |
+ return make_scoped_ptr(new SpellcheckService(static_cast<Profile*>(profile))); |
} |
class SpellcheckServiceTest : public testing::Test { |