Index: mojo/services/window_manager/window_manager_api_unittest.cc |
diff --git a/mojo/services/window_manager/window_manager_api_unittest.cc b/mojo/services/window_manager/window_manager_api_unittest.cc |
index 683be56bbd43d942864c02433a76be8fbdf91907..30ce03873a584e6eaed839de936d34b630f4ebcf 100644 |
--- a/mojo/services/window_manager/window_manager_api_unittest.cc |
+++ b/mojo/services/window_manager/window_manager_api_unittest.cc |
@@ -78,10 +78,9 @@ class TestApplicationLoader : public ApplicationLoader, |
// Overridden from ApplicationLoader: |
void Load(ApplicationManager* application_manager, |
const GURL& url, |
- scoped_refptr<LoadCallbacks> callbacks) override { |
- ScopedMessagePipeHandle shell_handle = callbacks->RegisterApplication(); |
- if (!shell_handle.is_valid()) |
- return; |
+ ScopedMessagePipeHandle shell_handle, |
+ LoadCallback callback) override { |
+ ASSERT_TRUE(shell_handle.is_valid()); |
scoped_ptr<ApplicationImpl> app( |
new ApplicationImpl(this, shell_handle.Pass())); |
apps_.push_back(app.release()); |