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

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

Issue 10631009: Removes TabFinder. We're not going to use it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: git rm tab_finder.cc Created 8 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/about_flags.cc ('k') | chrome/browser/ui/tabs/tab_finder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index de040df806f5faa506336956155b4d902f9632ed..e8825607592f95ae0b3657b3c9a8ac3cc8e3cfe5 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -127,7 +127,6 @@
#include "chrome/browser/ui/tab_contents/core_tab_helper.h"
#include "chrome/browser/ui/tab_contents/tab_contents.h"
#include "chrome/browser/ui/tabs/dock_info.h"
-#include "chrome/browser/ui/tabs/tab_finder.h"
#include "chrome/browser/ui/tabs/tab_menu_model.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/browser/ui/web_applications/web_app_ui.h"
@@ -430,10 +429,6 @@ Browser::Browser(Type type, Profile* profile)
CreateInstantIfNecessary();
- // Make sure TabFinder has been created. This does nothing if TabFinder is
- // not enabled.
- TabFinder::GetInstance();
-
UpdateBookmarkBarState(BOOKMARK_BAR_STATE_CHANGE_INIT);
FilePath profile_path = profile->GetPath();
@@ -1247,16 +1242,6 @@ void Browser::OpenCurrentURL() {
GURL url(location_bar->GetInputString());
- if (open_disposition == CURRENT_TAB && TabFinder::IsEnabled()) {
- Browser* existing_browser = NULL;
- WebContents* existing_tab = TabFinder::GetInstance()->FindTab(
- this, url, &existing_browser);
- if (existing_tab) {
- existing_browser->ActivateContents(existing_tab);
- return;
- }
- }
-
browser::NavigateParams params(this, url, location_bar->GetPageTransition());
params.disposition = open_disposition;
// Use ADD_INHERIT_OPENER so that all pages opened by the omnibox at least
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/ui/tabs/tab_finder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698