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

Unified Diff: mandoline/ui/aura/surface_binding.cc

Issue 1311353005: Adds a way to determine id of content handler that created app (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nuke comment Created 5 years, 4 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
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | mojo/application/public/cpp/application_connection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mandoline/ui/aura/surface_binding.cc
diff --git a/mandoline/ui/aura/surface_binding.cc b/mandoline/ui/aura/surface_binding.cc
index 6a2a23611804dff58255475529327d501042d87e..998a810282d301294a03e3b368c851f44364a35d 100644
--- a/mandoline/ui/aura/surface_binding.cc
+++ b/mandoline/ui/aura/surface_binding.cc
@@ -27,6 +27,9 @@
#include "mojo/public/cpp/bindings/binding.h"
namespace mandoline {
+namespace {
+void OnGotContentHandlerID(uint32_t content_handler_id) {}
+} // namespace
// PerConnectionState ----------------------------------------------------------
@@ -121,10 +124,9 @@ void SurfaceBinding::PerConnectionState::Init() {
mojo::ServiceProviderPtr service_provider;
mojo::URLRequestPtr request(mojo::URLRequest::New());
request->url = mojo::String::From("mojo:view_manager");
- shell_->ConnectToApplication(request.Pass(),
- GetProxy(&service_provider),
- nullptr,
- nullptr);
+ shell_->ConnectToApplication(request.Pass(), GetProxy(&service_provider),
+ nullptr, nullptr,
+ base::Bind(&OnGotContentHandlerID));
ConnectToService(service_provider.get(), &gpu_);
}
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | mojo/application/public/cpp/application_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698