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

Unified Diff: mojo/shell/application_instance.cc

Issue 1705323003: ContentHandler -> ShellClientFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@delete
Patch Set: . Created 4 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
« no previous file with comments | « mojo/shell/application_instance.h ('k') | mojo/shell/application_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/application_instance.cc
diff --git a/mojo/shell/application_instance.cc b/mojo/shell/application_instance.cc
index 14b237eac912ec3f24ebfb67cf70a60006f3607f..0d5ccb8c7e231df6f8a5158355861ff7388566b4 100644
--- a/mojo/shell/application_instance.cc
+++ b/mojo/shell/application_instance.cc
@@ -14,7 +14,6 @@
#include "mojo/common/common_type_converters.h"
#include "mojo/common/url_type_converters.h"
#include "mojo/shell/application_manager.h"
-#include "mojo/shell/public/interfaces/content_handler.mojom.h"
namespace mojo {
namespace shell {
@@ -23,7 +22,7 @@ ApplicationInstance::ApplicationInstance(
mojom::ShellClientPtr shell_client,
ApplicationManager* manager,
const Identity& identity,
- uint32_t requesting_content_handler_id,
+ uint32_t requesting_shell_client_factory_id,
const mojom::Shell::ConnectToApplicationCallback& connect_callback,
const base::Closure& on_application_end,
const String& application_name)
@@ -32,7 +31,7 @@ ApplicationInstance::ApplicationInstance(
identity_(identity),
allow_any_application_(identity.filter().size() == 1 &&
identity.filter().count("*") == 1),
- requesting_content_handler_id_(requesting_content_handler_id),
+ requesting_shell_client_factory_id_(requesting_shell_client_factory_id),
connect_callback_(connect_callback),
on_application_end_(on_application_end),
shell_client_(std::move(shell_client)),
@@ -80,7 +79,7 @@ void ApplicationInstance::BindPIDReceiver(
void ApplicationInstance::RunConnectCallback() {
if (!connect_callback_.is_null())
- connect_callback_.Run(id_, requesting_content_handler_id_);
+ connect_callback_.Run(id_, requesting_shell_client_factory_id_);
}
// Shell implementation:
@@ -142,7 +141,7 @@ uint32_t ApplicationInstance::GenerateUniqueID() const {
void ApplicationInstance::CallAcceptConnection(
scoped_ptr<ConnectToApplicationParams> params) {
- params->connect_callback().Run(id_, requesting_content_handler_id_);
+ params->connect_callback().Run(id_, requesting_shell_client_factory_id_);
AllowedInterfaces interfaces;
interfaces.insert("*");
if (!params->source().is_null())
« no previous file with comments | « mojo/shell/application_instance.h ('k') | mojo/shell/application_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698