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

Unified Diff: content/shell/renderer/layout_test/blink_test_runner.cc

Issue 2844063003: Migrate RenderFrameImpl to use BinderRegistry. (Closed)
Patch Set: . Created 3 years, 8 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/shell/renderer/layout_test/blink_test_runner.cc
diff --git a/content/shell/renderer/layout_test/blink_test_runner.cc b/content/shell/renderer/layout_test/blink_test_runner.cc
index d2171e6c177b8866898ca197d29a207c9cdda624..b97f5abe3e59fa210d737990cc7cd7a2bc194c47 100644
--- a/content/shell/renderer/layout_test/blink_test_runner.cc
+++ b/content/shell/renderer/layout_test/blink_test_runner.cc
@@ -61,8 +61,8 @@
#include "media/media_features.h"
#include "net/base/filename_util.h"
#include "net/base/net_errors.h"
+#include "services/service_manager/public/cpp/binder_registry.h"
#include "services/service_manager/public/cpp/connector.h"
-#include "services/service_manager/public/cpp/interface_registry.h"
#include "skia/ext/platform_canvas.h"
#include "third_party/WebKit/public/platform/FilePathConversion.h"
#include "third_party/WebKit/public/platform/Platform.h"
@@ -733,11 +733,13 @@ void BlinkTestRunner::DispatchBeforeInstallPromptEvent(
const base::Callback<void(bool)>& callback) {
app_banner_service_.reset(new test_runner::AppBannerService());
- service_manager::InterfaceRegistry::TestApi test_api(
- render_view()->GetMainRenderFrame()->GetInterfaceRegistry());
- test_api.GetLocalInterface(
- mojo::MakeRequest(&app_banner_service_->controller()));
-
+ service_manager::BinderRegistry* registry =
+ render_view()->GetMainRenderFrame()->GetInterfaceRegistry();
+ blink::mojom::AppBannerControllerRequest request =
+ mojo::MakeRequest(&app_banner_service_->controller());
+ registry->BindInterface(service_manager::Identity(),
+ blink::mojom::AppBannerController::Name_,
+ request.PassMessagePipe());
app_banner_service_->SendBannerPromptRequest(event_platforms, callback);
}

Powered by Google App Engine
This is Rietveld 408576698