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

Unified Diff: third_party/mojo_services/src/view_manager/public/cpp/lib/view_manager_client_factory.cc

Issue 954643002: Update mojo sdk to rev 3d23dae011859a2aae49f1d1adde705c8e85d819 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use run_renderer_in_process() Created 5 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: third_party/mojo_services/src/view_manager/public/cpp/lib/view_manager_client_factory.cc
diff --git a/third_party/mojo_services/src/view_manager/public/cpp/lib/view_manager_client_factory.cc b/third_party/mojo_services/src/view_manager/public/cpp/lib/view_manager_client_factory.cc
index cfa2b79662c2b1f4210b169765487ab5b6015da6..bb39fc9d55a95bbeb8f9adb2f46482e8d79afcb0 100644
--- a/third_party/mojo_services/src/view_manager/public/cpp/lib/view_manager_client_factory.cc
+++ b/third_party/mojo_services/src/view_manager/public/cpp/lib/view_manager_client_factory.cc
@@ -19,17 +19,16 @@ ViewManagerClientFactory::~ViewManagerClientFactory() {
}
// static
-scoped_ptr<ViewManagerClient>
-ViewManagerClientFactory::WeakBindViewManagerToPipe(
+ViewManagerClient* ViewManagerClientFactory::WeakBindViewManagerToPipe(
InterfaceRequest<ViewManagerClient> request,
ViewManagerServicePtr view_manager_service,
Shell* shell,
ViewManagerDelegate* delegate) {
const bool delete_on_error = false;
- scoped_ptr<ViewManagerClientImpl> client(new ViewManagerClientImpl(
- delegate, shell, request.Pass(), delete_on_error));
+ auto client = new ViewManagerClientImpl(delegate, shell, request.Pass(),
+ delete_on_error);
client->SetViewManagerService(view_manager_service.Pass());
- return client.Pass();
+ return client;
}
// InterfaceFactory<ViewManagerClient> implementation.

Powered by Google App Engine
This is Rietveld 408576698