summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/browser_commands.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/browser_commands.cc')
-rw-r--r--chrome/browser/ui/browser_commands.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/ui/browser_commands.cc b/chrome/browser/ui/browser_commands.cc
index 5b166f5..3d88794 100644
--- a/chrome/browser/ui/browser_commands.cc
+++ b/chrome/browser/ui/browser_commands.cc
@@ -491,7 +491,7 @@ bool CanDuplicateTab(const Browser* browser) {
return contents && contents->GetController().GetLastCommittedEntry();
}
-void DuplicateTabAt(Browser* browser, int index) {
+TabContents* DuplicateTabAt(Browser* browser, int index) {
TabContents* contents = GetTabContentsAt(browser, index);
CHECK(contents);
TabContents* contents_dupe =
@@ -541,6 +541,7 @@ void DuplicateTabAt(Browser* browser, int index) {
SessionServiceFactory::GetForProfileIfExisting(browser->profile());
if (session_service)
session_service->TabRestored(contents_dupe, pinned);
+ return contents_dupe;
}
bool CanDuplicateTabAt(Browser* browser, int index) {