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

Unified Diff: chrome/browser/ui/views/ash/app_list/search_builder.cc

Issue 10539134: TabContentsWrapper -> TabContents, part 57. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: last use 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
Index: chrome/browser/ui/views/ash/app_list/search_builder.cc
diff --git a/chrome/browser/ui/views/ash/app_list/search_builder.cc b/chrome/browser/ui/views/ash/app_list/search_builder.cc
index a17afedec52c8486a81c69dd824fdd41674d29c8..185447771eb9c8ad7011346acb21263691523e27 100644
--- a/chrome/browser/ui/views/ash/app_list/search_builder.cc
+++ b/chrome/browser/ui/views/ash/app_list/search_builder.cc
@@ -209,8 +209,8 @@ void SearchBuilder::OpenResult(const app_list::SearchResult& result,
if (disposition == CURRENT_TAB) {
// If current tab is not NTP, change disposition to NEW_FOREGROUND_TAB.
- const GURL& url = browser->GetSelectedWebContents() ?
- browser->GetSelectedWebContents()->GetURL() : GURL();
+ const GURL& url = browser->GetActiveWebContents() ?
+ browser->GetActiveWebContents()->GetURL() : GURL();
if (!url.SchemeIs(chrome::kChromeUIScheme) ||
url.host() != chrome::kChromeUINewTabHost) {
disposition = NEW_FOREGROUND_TAB;
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | content/browser/accessibility/cross_platform_accessibility_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698