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

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

Issue 11275165: Not opening File Manager as an app on Ctrl+O. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed comment. Created 8 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/chrome_shell_delegate.cc
diff --git a/chrome/browser/ui/ash/chrome_shell_delegate.cc b/chrome/browser/ui/ash/chrome_shell_delegate.cc
index c411a88ef60d2b6dda00b8f40535cb2fee6e0e1c..7f3b11f848cee9d2b91e0e863318cc81fc6f7df9 100644
--- a/chrome/browser/ui/ash/chrome_shell_delegate.cc
+++ b/chrome/browser/ui/ash/chrome_shell_delegate.cc
@@ -202,13 +202,14 @@ void ChromeShellDelegate::OpenFileManager(bool as_dialog) {
Browser* browser =
browser::FindBrowserWithWindow(ash::wm::GetActiveWindow());
// Open the select file dialog only if there is an active browser where the
- // selected file is displayed. Otherwise open a file manager in a tab.
+ // selected file is displayed.
if (browser) {
browser->OpenFile();
return;
}
+ } else {
+ file_manager_util::OpenApplication();
}
- file_manager_util::OpenApplication();
#endif
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698