summaryrefslogtreecommitdiffstats
path: root/chrome/browser/external_tab_container.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/external_tab_container.cc')
-rw-r--r--chrome/browser/external_tab_container.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/external_tab_container.cc b/chrome/browser/external_tab_container.cc
index 2f9b334..9d0d089 100644
--- a/chrome/browser/external_tab_container.cc
+++ b/chrome/browser/external_tab_container.cc
@@ -727,12 +727,13 @@ bool ExternalTabContainer::InitNavigationInfo(IPC::NavigationInfo* nav_info,
return true;
}
-ExternalTabContainer* ExternalTabContainer::RemovePendingTab(intptr_t cookie) {
+scoped_refptr<ExternalTabContainer> ExternalTabContainer::RemovePendingTab(
+ intptr_t cookie) {
PendingTabs::iterator index = pending_tabs_.find(cookie);
if (index != pending_tabs_.end()) {
scoped_refptr<ExternalTabContainer> container = (*index).second;
pending_tabs_.erase(index);
- return container.release();
+ return container;
}
NOTREACHED() << "Failed to find ExternalTabContainer for cookie: "