Index: mojo/services/view_manager/view_manager_unittest.cc |
diff --git a/mojo/services/view_manager/view_manager_unittest.cc b/mojo/services/view_manager/view_manager_unittest.cc |
index 3d24a1832377b25fe994efdad4af6339c90d8704..8c3e13f2ce87b0171e62e3ea80f9957162837602 100644 |
--- a/mojo/services/view_manager/view_manager_unittest.cc |
+++ b/mojo/services/view_manager/view_manager_unittest.cc |
@@ -386,9 +386,12 @@ class EmbedServiceLoader : public ServiceLoader, |
virtual ~EmbedServiceLoader() {} |
// ServiceLoader implementation: |
- virtual void LoadService(ServiceManager* manager, |
- const GURL& url, |
- ScopedMessagePipeHandle shell_handle) OVERRIDE { |
+ virtual void Load(ServiceManager* manager, |
+ const GURL& url, |
+ scoped_refptr<LoadCallbacks> callbacks) OVERRIDE { |
+ ScopedMessagePipeHandle shell_handle = callbacks->RegisterApplication(); |
+ if (!shell_handle.is_valid()) |
+ return; |
scoped_ptr<ApplicationImpl> app(new ApplicationImpl(this, |
shell_handle.Pass())); |
apps_.push_back(app.release()); |