| Index: extensions/browser/api/storage/storage_api_unittest.cc
|
| diff --git a/extensions/browser/api/storage/storage_api_unittest.cc b/extensions/browser/api/storage/storage_api_unittest.cc
|
| index 0d2dc4d41c02bd82ac278c0d3443ab80a55e70a7..e8d309b4e1f42cba569ad29ce8a5c1b30686b250 100644
|
| --- a/extensions/browser/api/storage/storage_api_unittest.cc
|
| +++ b/extensions/browser/api/storage/storage_api_unittest.cc
|
| @@ -5,6 +5,7 @@
|
| #include "base/command_line.h"
|
| #include "base/files/file_path.h"
|
| #include "base/memory/ref_counted.h"
|
| +#include "base/memory/scoped_ptr.h"
|
| #include "base/strings/stringprintf.h"
|
| #include "content/public/test/test_browser_context.h"
|
| #include "extensions/browser/api/extensions_api_client.h"
|
| @@ -29,14 +30,14 @@ namespace extensions {
|
| namespace {
|
|
|
| // Caller owns the returned object.
|
| -KeyedService* CreateStorageFrontendForTesting(
|
| +scoped_ptr<KeyedService> CreateStorageFrontendForTesting(
|
| content::BrowserContext* context) {
|
| return StorageFrontend::CreateForTesting(new LeveldbSettingsStorageFactory(),
|
| context);
|
| }
|
|
|
| -KeyedService* BuildEventRouter(content::BrowserContext* profile) {
|
| - return new extensions::EventRouter(profile, nullptr);
|
| +scoped_ptr<KeyedService> BuildEventRouter(content::BrowserContext* context) {
|
| + return make_scoped_ptr(new extensions::EventRouter(context, nullptr));
|
| }
|
|
|
| } // namespace
|
|
|