| Index: chrome/browser/extensions/api/sockets_udp/sockets_udp_api_unittest.cc
|
| diff --git a/chrome/browser/extensions/api/sockets_udp/sockets_udp_api_unittest.cc b/chrome/browser/extensions/api/sockets_udp/sockets_udp_api_unittest.cc
|
| index fa1944faa6b6735ec8bd11b708ff01465ac484a2..476cb2f30129de43529d567302bfae0018eb3a45 100644
|
| --- a/chrome/browser/extensions/api/sockets_udp/sockets_udp_api_unittest.cc
|
| +++ b/chrome/browser/extensions/api/sockets_udp/sockets_udp_api_unittest.cc
|
| @@ -4,7 +4,6 @@
|
|
|
| #include "base/values.h"
|
| #include "chrome/browser/browser_process_impl.h"
|
| -#include "chrome/browser/extensions/api/api_function.h"
|
| #include "chrome/browser/extensions/api/api_resource_manager.h"
|
| #include "chrome/browser/extensions/api/socket/socket.h"
|
| #include "chrome/browser/extensions/api/socket/udp_socket.h"
|
| @@ -22,13 +21,12 @@ namespace utils = extension_function_test_utils;
|
| namespace extensions {
|
| namespace api {
|
|
|
| -static
|
| -BrowserContextKeyedService* ApiResourceManagerTestFactory(
|
| - content::BrowserContext* profile) {
|
| +static BrowserContextKeyedService* ApiResourceManagerTestFactory(
|
| + content::BrowserContext* context) {
|
| content::BrowserThread::ID id;
|
| CHECK(content::BrowserThread::GetCurrentThreadIdentifier(&id));
|
| - return ApiResourceManager<ResumableUDPSocket>::
|
| - CreateApiResourceManagerForTest(static_cast<Profile*>(profile), id);
|
| + return ApiResourceManager<
|
| + ResumableUDPSocket>::CreateApiResourceManagerForTest(context, id);
|
| }
|
|
|
| class SocketsUdpUnitTest : public ExtensionApiUnittest {
|
|
|