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

Unified Diff: mojo/services/view_manager/view_manager_connection.cc

Issue 322923002: Pass embedding app identity through at embed time (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 6 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: mojo/services/view_manager/view_manager_connection.cc
diff --git a/mojo/services/view_manager/view_manager_connection.cc b/mojo/services/view_manager/view_manager_connection.cc
index f68469d77fae16d46f16a2aa645ec38d15d1e7dd..3bb38c8f64b21bfd809edddb3f26d68db118c523 100644
--- a/mojo/services/view_manager/view_manager_connection.cc
+++ b/mojo/services/view_manager/view_manager_connection.cc
@@ -36,11 +36,13 @@ void GetDescendants(const Node* node, std::vector<const Node*>* nodes) {
ViewManagerConnection::ViewManagerConnection(RootNodeManager* root_node_manager,
ConnectionSpecificId creator_id,
+ const std::string& creator_url,
const std::string& url)
: root_node_manager_(root_node_manager),
id_(root_node_manager_->GetAndAdvanceNextConnectionId()),
url_(url),
creator_id_(creator_id),
+ creator_url_(creator_url),
delete_on_connection_error_(false) {
}
@@ -695,6 +697,7 @@ void ViewManagerConnection::OnConnectionEstablished() {
client()->OnViewManagerConnectionEstablished(
id_,
+ creator_url_,
root_node_manager_->next_server_change_id(),
NodesToINodes(to_send));
}
« no previous file with comments | « mojo/services/view_manager/view_manager_connection.h ('k') | mojo/services/view_manager/view_manager_connection_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698