| Index: chrome/browser/ui/views/ash/chrome_shell_delegate.cc
|
| diff --git a/chrome/browser/ui/views/ash/chrome_shell_delegate.cc b/chrome/browser/ui/views/ash/chrome_shell_delegate.cc
|
| index cf681708e147b1861a35be25964d62fc321c2ad9..2c010fcce69976d54c09cc750ca355b76b3aa86d 100644
|
| --- a/chrome/browser/ui/views/ash/chrome_shell_delegate.cc
|
| +++ b/chrome/browser/ui/views/ash/chrome_shell_delegate.cc
|
| @@ -132,37 +132,6 @@ void ChromeShellDelegate::NewWindow(bool is_incognito) {
|
| is_incognito ? profile->GetOffTheRecordProfile() : profile);
|
| }
|
|
|
| -void ChromeShellDelegate::Search() {
|
| - // Exit fullscreen to show omnibox.
|
| - Browser* last_active = BrowserList::GetLastActive();
|
| - if (last_active) {
|
| - if (last_active->window()->IsFullscreen()) {
|
| - last_active->ToggleFullscreenMode();
|
| - // ToggleFullscreenMode is asynchronous, so we don't have omnibox
|
| - // visible at this point. Wait for next event cycle which toggles
|
| - // the visibility of omnibox before creating new tab.
|
| - MessageLoop::current()->PostTask(
|
| - FROM_HERE, base::Bind(&ChromeShellDelegate::Search,
|
| - weak_factory_.GetWeakPtr()));
|
| - return;
|
| - }
|
| - }
|
| -
|
| - Browser* target_browser = browser::FindOrCreateTabbedBrowser(
|
| - last_active ? last_active->profile() :
|
| - ProfileManager::GetDefaultProfileOrOffTheRecord());
|
| - const GURL& url = target_browser->GetSelectedWebContents() ?
|
| - target_browser->GetSelectedWebContents()->GetURL() : GURL();
|
| - if (url.SchemeIs(chrome::kChromeUIScheme) &&
|
| - url.host() == chrome::kChromeUINewTabHost) {
|
| - // If the NTP is showing, focus the omnibox.
|
| - target_browser->window()->SetFocusToLocationBar(true);
|
| - } else {
|
| - target_browser->NewTab();
|
| - }
|
| - target_browser->window()->Show();
|
| -}
|
| -
|
| void ChromeShellDelegate::OpenFileManager() {
|
| #if defined(OS_CHROMEOS)
|
| file_manager_util::OpenApplication();
|
|
|