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

Unified Diff: mojo/shell/public/cpp/connector.h

Issue 1778443002: Use instance name to uniquify renderers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@40fix2
Patch Set: Created 4 years, 9 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/shell/public/cpp/connector.h
diff --git a/mojo/shell/public/cpp/connector.h b/mojo/shell/public/cpp/connector.h
index be6ba4376276a0e3035666d64a911fa4777a5420..804eb03dcf559bdc4856622c7acc69e3877b0aad 100644
--- a/mojo/shell/public/cpp/connector.h
+++ b/mojo/shell/public/cpp/connector.h
@@ -62,6 +62,12 @@ class Connector {
connection->GetInterface(ptr);
}
template <typename Interface>
+ void ConnectToInterface(const Identity& target,
+ InterfacePtr<Interface>* ptr) {
+ ConnectParams params(target);
+ return ConnectToInterface(&params, ptr);
+ }
+ template <typename Interface>
void ConnectToInterface(const std::string& name,
InterfacePtr<Interface>* ptr) {
ConnectParams params(name);

Powered by Google App Engine
This is Rietveld 408576698