Chromium Code Reviews| Index: chrome/browser/chromeos/file_manager/open_with_browser.cc |
| diff --git a/chrome/browser/chromeos/file_manager/open_with_browser.cc b/chrome/browser/chromeos/file_manager/open_with_browser.cc |
| index 8b4e44c8e7f56934e0ee7a293f4cc5e212e15ceb..9d801837dc1a9a699a94dc3e5f65f75e8a2d4041 100644 |
| --- a/chrome/browser/chromeos/file_manager/open_with_browser.cc |
| +++ b/chrome/browser/chromeos/file_manager/open_with_browser.cc |
| @@ -13,6 +13,7 @@ |
| #include "chrome/browser/chromeos/drive/file_system_util.h" |
| #include "chrome/browser/plugins/plugin_prefs.h" |
| #include "chrome/browser/profiles/profile_manager.h" |
| +#include "chrome/browser/ui/ash/multi_user/multi_user_util.h" |
| #include "chrome/browser/ui/browser.h" |
| #include "chrome/browser/ui/browser_tabstrip.h" |
| #include "chrome/browser/ui/browser_window.h" |
| @@ -107,6 +108,11 @@ void OpenNewTab(Profile* profile, const GURL& url) { |
| profile, chrome::HOST_DESKTOP_TYPE_ASH); |
| chrome::AddSelectedTabWithURL(displayer.browser(), url, |
| content::PAGE_TRANSITION_LINK); |
| + |
| + // Since the ScopedTabbedBrowserDisplayer does not guarantee that the |
|
mtomasz
2014/01/30 01:47:18
If there is already a window with lots of tabs for
Mr4D (OOO till 08-26)
2014/01/30 16:49:58
I have spent yesterday already about 2 hours of im
mtomasz
2014/01/31 01:12:42
SGTM. We can improve the logic in the future, if u
|
| + // browser will be show on the active desktop, we ensure the visibility. |
|
mtomasz
2014/01/31 01:12:42
nit: show -> shown
Mr4D (OOO till 08-26)
2014/01/31 15:20:58
Done.
|
| + multi_user_util::MoveWindowToCurrentDesktop( |
| + displayer.browser()->window()->GetNativeWindow()); |
| } |
| // Reads the alternate URL from a GDoc file. When it fails, returns a file URL |