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

Unified Diff: mojo/application_manager/application_loader.cc

Issue 741453002: Make sure that Content Handled application can be connected multiple times. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix sky Created 6 years, 1 month 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 | « mojo/application_manager/application_loader.h ('k') | mojo/application_manager/application_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/application_manager/application_loader.cc
diff --git a/mojo/application_manager/application_loader.cc b/mojo/application_manager/application_loader.cc
index 60dec669d7229d857fd554694d3904b86b9f99a8..ac98b633c0013bb6a75e769c54f9e46c36b679cd 100644
--- a/mojo/application_manager/application_loader.cc
+++ b/mojo/application_manager/application_loader.cc
@@ -4,27 +4,23 @@
#include "mojo/application_manager/application_loader.h"
+#include "base/bind.h"
#include "base/logging.h"
namespace mojo {
-ApplicationLoader::SimpleLoadCallbacks::SimpleLoadCallbacks(
- ScopedMessagePipeHandle shell_handle)
- : shell_handle_(shell_handle.Pass()) {
-}
+namespace {
-ApplicationLoader::SimpleLoadCallbacks::~SimpleLoadCallbacks() {
+void NotReached(const GURL& url,
+ ScopedMessagePipeHandle shell_handle,
+ URLResponsePtr response) {
+ NOTREACHED();
}
-ScopedMessagePipeHandle
-ApplicationLoader::SimpleLoadCallbacks::RegisterApplication() {
- return shell_handle_.Pass();
-}
+} // namespace
-void ApplicationLoader::SimpleLoadCallbacks::LoadWithContentHandler(
- const GURL& content_handle_url,
- URLResponsePtr url_response) {
- NOTREACHED();
+ApplicationLoader::LoadCallback ApplicationLoader::SimpleLoadCallback() {
+ return base::Bind(&NotReached);
}
} // namespace mojo
« no previous file with comments | « mojo/application_manager/application_loader.h ('k') | mojo/application_manager/application_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698