Index: extensions/browser/api/storage/storage_frontend.cc |
diff --git a/extensions/browser/api/storage/storage_frontend.cc b/extensions/browser/api/storage/storage_frontend.cc |
index e94ecd82d17af40aaa8045c629297d88660a6fac..dccd5e1179382e93b734df1fd49dc4e65876aaaa 100644 |
--- a/extensions/browser/api/storage/storage_frontend.cc |
+++ b/extensions/browser/api/storage/storage_frontend.cc |
@@ -65,10 +65,10 @@ StorageFrontend* StorageFrontend::Get(BrowserContext* context) { |
} |
// static |
-StorageFrontend* StorageFrontend::CreateForTesting( |
+scoped_ptr<StorageFrontend> StorageFrontend::CreateForTesting( |
const scoped_refptr<SettingsStorageFactory>& storage_factory, |
BrowserContext* context) { |
- return new StorageFrontend(storage_factory, context); |
+ return make_scoped_ptr(new StorageFrontend(storage_factory, context)); |
} |
StorageFrontend::StorageFrontend(BrowserContext* context) |