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

Unified Diff: content/child/blink_platform_impl.cc

Issue 2643063002: Refactor Blink's ServiceConnector and add ability to mock in layout tests (Closed)
Patch Set: Rebase Created 3 years, 11 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: content/child/blink_platform_impl.cc
diff --git a/content/child/blink_platform_impl.cc b/content/child/blink_platform_impl.cc
index 7c6dfda8dbe3b236e86e401a012c9ad968530544..dfe80bc67090b596fab3b7f377b0bf1474f83d8e 100644
--- a/content/child/blink_platform_impl.cc
+++ b/content/child/blink_platform_impl.cc
@@ -50,8 +50,6 @@
#include "content/public/common/content_client.h"
#include "content/public/common/service_manager_connection.h"
#include "net/base/net_errors.h"
-#include "services/service_manager/public/cpp/connector.h"
-#include "services/service_manager/public/interfaces/connector.mojom.h"
#include "third_party/WebKit/public/platform/WebData.h"
#include "third_party/WebKit/public/platform/WebFloatPoint.h"
#include "third_party/WebKit/public/platform/WebSecurityOrigin.h"
@@ -784,19 +782,6 @@ bool BlinkPlatformImpl::databaseSetFileSize(
return false;
}
-void BlinkPlatformImpl::bindServiceConnector(
- mojo::ScopedMessagePipeHandle remote_handle) {
- if (!ChildThreadImpl::current())
- return;
-
- service_manager::mojom::ConnectorRequest chromium_request;
- chromium_request.Bind(std::move(remote_handle));
- ChildThreadImpl::current()
- ->GetServiceManagerConnection()
- ->GetConnector()
- ->BindConnectorRequest(std::move(chromium_request));
-}
-
size_t BlinkPlatformImpl::actualMemoryUsageMB() {
return GetMemoryUsageKB() >> 10;
}

Powered by Google App Engine
This is Rietveld 408576698