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

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

Issue 2821011: Removes phantom tabs. (Closed)
Patch Set: Created 10 years, 6 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
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.h ('k') | chrome/browser/tabs/pinned_tab_codec.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/tab_contents.cc
diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc
index 78b2124cf4232b6fe1fb01b7c9db73956badfd99..23a05ddd22eb2c1f1aae3674bc50af9aaadf9900 100644
--- a/chrome/browser/tab_contents/tab_contents.cc
+++ b/chrome/browser/tab_contents/tab_contents.cc
@@ -1369,29 +1369,6 @@ bool TabContents::ShouldAcceptDragAndDrop() const {
#endif
}
-TabContents* TabContents::CloneAndMakePhantom() {
- TabNavigation tab_nav;
-
- NavigationEntry* entry = controller().GetActiveEntry();
- if (extension_app_)
- tab_nav.set_virtual_url(extension_app_->GetFullLaunchURL());
- else if (entry)
- tab_nav.SetFromNavigationEntry(*entry);
-
- std::vector<TabNavigation> navigations;
- navigations.push_back(tab_nav);
-
- TabContents* new_contents =
- new TabContents(profile(), NULL, MSG_ROUTING_NONE, NULL);
- new_contents->SetExtensionApp(extension_app_);
- new_contents->controller().RestoreFromState(navigations, 0, false);
-
- if (!extension_app_ && entry)
- new_contents->controller().GetActiveEntry()->favicon() = entry->favicon();
-
- return new_contents;
-}
-
// Resets the |content_blocked_| array.
void TabContents::ClearBlockedContentSettings() {
for (size_t i = 0; i < arraysize(content_blocked_); ++i)
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.h ('k') | chrome/browser/tabs/pinned_tab_codec.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698