diff options
author | erg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-19 00:57:58 +0000 |
---|---|---|
committer | erg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-19 00:57:58 +0000 |
commit | 3ecf8289a6e5d7e07b8e52cf1f3e40bf436e814c (patch) | |
tree | 72b3487aead1628b6375f783ff31646f67337ec6 /mojo/examples/window_manager | |
parent | 1f6c86af09fd5fa00f4717040e57f276fecd46f2 (diff) | |
download | chromium_src-3ecf8289a6e5d7e07b8e52cf1f3e40bf436e814c.zip chromium_src-3ecf8289a6e5d7e07b8e52cf1f3e40bf436e814c.tar.gz chromium_src-3ecf8289a6e5d7e07b8e52cf1f3e40bf436e814c.tar.bz2 |
mojo: Make InterfacePtr<> testable in if() statements without .get().
This also goes and changes a lot of "if (obj.get())" to "if (obj)".
BUG=394639
Review URL: https://codereview.chromium.org/405653003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284269 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'mojo/examples/window_manager')
-rw-r--r-- | mojo/examples/window_manager/window_manager.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mojo/examples/window_manager/window_manager.cc b/mojo/examples/window_manager/window_manager.cc index f672c5f..e1cb54d 100644 --- a/mojo/examples/window_manager/window_manager.cc +++ b/mojo/examples/window_manager/window_manager.cc @@ -464,7 +464,7 @@ class WindowManager : public ApplicationDelegate, navigation::NavigationDetailsPtr nav_details, navigation::ResponseDetailsPtr response) { node->Embed(app_url); - if (nav_details.get()) { + if (nav_details) { navigation::NavigatorPtr navigator; app_->ConnectToService(app_url, &navigator); navigator->Navigate(node->id(), nav_details.Pass(), response.Pass()); |