| 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));
|
| }
|
|
|