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

Unified Diff: mojo/public/cpp/application/lazy_interface_ptr.h

Issue 835253002: Update mojo sdk to rev e3719475d5971283d1d2250533d53066b2ff9797 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « mojo/public/VERSION ('k') | mojo/public/cpp/system/handle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/application/lazy_interface_ptr.h
diff --git a/mojo/public/cpp/application/lazy_interface_ptr.h b/mojo/public/cpp/application/lazy_interface_ptr.h
index 1ecb043f1330c47ba90a57a6b573e737dadfa286..a9b57dbde473546a8fadb07f61652b587dda7baf 100644
--- a/mojo/public/cpp/application/lazy_interface_ptr.h
+++ b/mojo/public/cpp/application/lazy_interface_ptr.h
@@ -26,7 +26,7 @@ class LazyInterfacePtr : public InterfacePtr<Interface> {
}
Interface* get() const {
- if (!InterfacePtr<Interface>::get()) {
+ if (!InterfacePtr<Interface>::get() && service_provider_) {
mojo::ConnectToService<Interface>(
service_provider_, const_cast<LazyInterfacePtr<Interface>*>(this));
}
« no previous file with comments | « mojo/public/VERSION ('k') | mojo/public/cpp/system/handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698