diff options
Diffstat (limited to 'content/browser/web_contents/render_view_host_manager.cc')
-rw-r--r-- | content/browser/web_contents/render_view_host_manager.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content/browser/web_contents/render_view_host_manager.cc b/content/browser/web_contents/render_view_host_manager.cc index 3f14460..558a7dd 100644 --- a/content/browser/web_contents/render_view_host_manager.cc +++ b/content/browser/web_contents/render_view_host_manager.cc @@ -703,9 +703,9 @@ void RenderViewHostManager::CommitPending() { // |pending_web_ui_|, or clear |web_ui_| if there is no pending WebUI, or // leave |web_ui_| as is if reusing it. DCHECK(!(pending_web_ui_.get() && pending_and_current_web_ui_.get())); - if (pending_web_ui_.get()) + if (pending_web_ui_) web_ui_.reset(pending_web_ui_.release()); - else if (!pending_and_current_web_ui_.get()) + else if (!pending_and_current_web_ui_) web_ui_.reset(); // It's possible for the pending_render_view_host_ to be NULL when we aren't |