Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5365)

Unified Diff: chrome/browser/extensions/api/sockets_tcp/sockets_tcp_api_unittest.cc

Issue 177003015: Pull AsyncApiFunction out of src/chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase for storage_api Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/sockets_tcp/sockets_tcp_api_unittest.cc
diff --git a/chrome/browser/extensions/api/sockets_tcp/sockets_tcp_api_unittest.cc b/chrome/browser/extensions/api/sockets_tcp/sockets_tcp_api_unittest.cc
index 8a5a755894a905efed532a105b5124232bf95e3e..2a809fd0f37e6695f03b0a861a3fb4c7c898bbb0 100644
--- a/chrome/browser/extensions/api/sockets_tcp/sockets_tcp_api_unittest.cc
+++ b/chrome/browser/extensions/api/sockets_tcp/sockets_tcp_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/tcp_socket.h"
@@ -19,13 +18,12 @@
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<ResumableTCPSocket>::
- CreateApiResourceManagerForTest(static_cast<Profile*>(profile), id);
+ return ApiResourceManager<
+ ResumableTCPSocket>::CreateApiResourceManagerForTest(context, id);
}
class SocketsTcpUnitTest : public ExtensionApiUnittest {

Powered by Google App Engine
This is Rietveld 408576698