Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2984)

Unified Diff: chrome/browser/ui/browser.cc

Issue 10697017: Tabs Extension: Implementation of tabs.duplicate api. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/browser.cc
===================================================================
--- chrome/browser/ui/browser.cc (revision 142698)
+++ chrome/browser/ui/browser.cc (working copy)
@@ -2730,7 +2730,7 @@
return nc.GetWebContents() && nc.GetLastCommittedEntry();
}
-void Browser::DuplicateContentsAt(int index) {
+TabContents* Browser::DuplicateContentsAt(int index) {
TabContents* contents = GetTabContentsAt(index);
CHECK(contents);
TabContents* contents_dupe = contents->Clone();
@@ -2776,6 +2776,7 @@
SessionServiceFactory::GetForProfileIfExisting(profile_);
if (session_service)
session_service->TabRestored(contents_dupe, pinned);
+ return contents_dupe;
}
void Browser::CloseFrameAfterDragSession() {

Powered by Google App Engine
This is Rietveld 408576698