diff options
Diffstat (limited to 'chrome/browser/views/app_launcher.cc')
-rw-r--r-- | chrome/browser/views/app_launcher.cc | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/chrome/browser/views/app_launcher.cc b/chrome/browser/views/app_launcher.cc index 7cea6af..240a926 100644 --- a/chrome/browser/views/app_launcher.cc +++ b/chrome/browser/views/app_launcher.cc @@ -392,8 +392,9 @@ void AppLauncher::AddTabWithURL(const GURL& url, case chromeos::StatusAreaView::OPEN_TABS_ON_LEFT: { // Add the new tab at the first non-pinned location. int index = browser_->tabstrip_model()->IndexOfFirstNonMiniTab(); - browser_->AddTabWithURL(url, GURL(), transition, - true, index, true, NULL); + browser_->AddTabWithURL(url, GURL(), transition, index, + Browser::ADD_SELECTED | Browser::ADD_FORCE_INDEX, + NULL, std::string()); break; } case chromeos::StatusAreaView::OPEN_TABS_CLOBBER: { @@ -402,11 +403,15 @@ void AppLauncher::AddTabWithURL(const GURL& url, break; } case chromeos::StatusAreaView::OPEN_TABS_ON_RIGHT: { - browser_->AddTabWithURL(url, GURL(), transition, true, -1, true, NULL); + browser_->AddTabWithURL(url, GURL(), transition, -1, + Browser::ADD_SELECTED | Browser::ADD_FORCE_INDEX, + NULL, std::string()); break; } } #else - browser_->AddTabWithURL(url, GURL(), transition, true, -1, true, NULL); + browser_->AddTabWithURL(url, GURL(), transition, -1, + Browser::ADD_SELECTED | Browser::ADD_FORCE_INDEX, + NULL, std::string()); #endif } |