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

Unified Diff: services/window_manager/window_manager_api_unittest.cc

Issue 873453004: Use ShellPtr type in ApplicationLoader instead of untyped handles (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix android Created 5 years, 11 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: services/window_manager/window_manager_api_unittest.cc
diff --git a/services/window_manager/window_manager_api_unittest.cc b/services/window_manager/window_manager_api_unittest.cc
index 2dd856e67868f99e00d0da2ad3a9bc19b12b6c37..3960874fed01698d1d5db0b75ea8c5ecd91747b6 100644
--- a/services/window_manager/window_manager_api_unittest.cc
+++ b/services/window_manager/window_manager_api_unittest.cc
@@ -83,11 +83,10 @@ class TestApplicationLoader : public mojo::ApplicationLoader,
// Overridden from mojo::ApplicationLoader:
void Load(mojo::ApplicationManager* application_manager,
const GURL& url,
- mojo::ScopedMessagePipeHandle shell_handle,
+ mojo::ShellPtr shell,
LoadCallback callback) override {
- ASSERT_TRUE(shell_handle.is_valid());
- scoped_ptr<ApplicationImpl> app(
- new ApplicationImpl(this, shell_handle.Pass()));
+ ASSERT_TRUE(shell);
+ scoped_ptr<ApplicationImpl> app(new ApplicationImpl(this, shell.Pass()));
apps_.push_back(app.release());
}
void OnApplicationError(mojo::ApplicationManager* application_manager,
« no previous file with comments | « mojo/services/view_manager/public/cpp/tests/view_manager_unittest.cc ('k') | shell/android/android_handler_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698