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

Unified Diff: chrome/browser/chromeos/file_manager/open_with_browser.cc

Issue 149703006: Fixing problem with browser invocations from a visiting files application (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Win Created 6 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/ui/ash/multi_user/multi_user_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..0750742dea554a3ea2096da203a824c09fb538b8 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
+ // browser will be shown on the active desktop, we ensure the visibility.
+ multi_user_util::MoveWindowToCurrentDesktop(
+ displayer.browser()->window()->GetNativeWindow());
}
// Reads the alternate URL from a GDoc file. When it fails, returns a file URL
« no previous file with comments | « no previous file | chrome/browser/ui/ash/multi_user/multi_user_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698