|
|
Chromium Code Reviews|
Created:
6 years, 10 months ago by Mr4D (OOO till 08-26) Modified:
6 years, 10 months ago CC:
chromium-reviews, sadrul, nkostylev+watch_chromium.org, rginda+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, kalyank, stevenjb+watch_chromium.org, ben+ash_chromium.org Base URL:
svn://svn.chromium.org/chrome/trunk/src Visibility:
Public. |
DescriptionFixing problem with browser invocations from a visiting files application
This is addressing the first of three problems. The others seem to be much harder to solve. But lets get this in first.
BUG=338606
TEST=visual
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=248389
Patch Set 1 #
Total comments: 5
Patch Set 2 : #Patch Set 3 : Fix Win #
Messages
Total messages: 53 (0 generated)
Please have a look!
https://codereview.chromium.org/149703006/diff/1/chrome/browser/chromeos/file... File chrome/browser/chromeos/file_manager/open_with_browser.cc (right): https://codereview.chromium.org/149703006/diff/1/chrome/browser/chromeos/file... chrome/browser/chromeos/file_manager/open_with_browser.cc:112: // Since the ScopedTabbedBrowserDisplayer does not guarantee that the If there is already a window with lots of tabs for user A on desktop A, and we are using a teleported Files App to desktop B, then the tab will be added to the last active window for user A, and it will teleport it to desktop B together with all of the tabs in this window. Am I correct? If so, then shouldn't we look for a browser window of profile B on desktop B first? If it exists, then create a tab there. If not, create a new browser window for profile A on desktop B and add a tab there to avoid teleporting all of the tabs which were on desktop A? The code would be more complicated, but I guess matching better user expectations. WDYT?
Please see my comment! https://codereview.chromium.org/149703006/diff/1/chrome/browser/chromeos/file... File chrome/browser/chromeos/file_manager/open_with_browser.cc (right): https://codereview.chromium.org/149703006/diff/1/chrome/browser/chromeos/file... chrome/browser/chromeos/file_manager/open_with_browser.cc:112: // Since the ScopedTabbedBrowserDisplayer does not guarantee that the I have spent yesterday already about 2 hours of implementing a new ScopedTabbedBrowserDisplayer for this module to do exactly that. It enumerated all windows from that user and picked a window which would be also on that desktop - or create a new one. However... I realized then that once a window is on the other desktop, that will be chosen from then on as the LRU window. Somehow the effort to get that in outweighs the benefit of doing it so I threw that code away. Furthermore we informed the user that some odd things might happen when he teleports windows and this solution seems to be much more acceptable then the dialog we discussed yesterday. If you disagree - let me know and I re-implement the displayer again. :)
LGTM with a nit for chrome/browser/chromeos/file_manager/open_with_browser.cc. https://codereview.chromium.org/149703006/diff/1/chrome/browser/chromeos/file... File chrome/browser/chromeos/file_manager/open_with_browser.cc (right): https://codereview.chromium.org/149703006/diff/1/chrome/browser/chromeos/file... chrome/browser/chromeos/file_manager/open_with_browser.cc:112: // Since the ScopedTabbedBrowserDisplayer does not guarantee that the On 2014/01/30 16:49:58, Mr4D wrote: > I have spent yesterday already about 2 hours of implementing a new > ScopedTabbedBrowserDisplayer for this module to do exactly that. It enumerated > all windows from that user and picked a window which would be also on that > desktop - or create a new one. > > However... I realized then that once a window is on the other desktop, that will > be chosen from then on as the LRU window. Somehow the effort to get that in > outweighs the benefit of doing it so I threw that code away. Furthermore we > informed the user that some odd things might happen when he teleports windows > and this solution seems to be much more acceptable then the dialog we discussed > yesterday. > > If you disagree - let me know and I re-implement the displayer again. :) SGTM. We can improve the logic in the future, if users don't like it. https://codereview.chromium.org/149703006/diff/1/chrome/browser/chromeos/file... chrome/browser/chromeos/file_manager/open_with_browser.cc:113: // browser will be show on the active desktop, we ensure the visibility. nit: show -> shown
Done. Thanks! https://codereview.chromium.org/149703006/diff/1/chrome/browser/chromeos/file... File chrome/browser/chromeos/file_manager/open_with_browser.cc (right): https://codereview.chromium.org/149703006/diff/1/chrome/browser/chromeos/file... chrome/browser/chromeos/file_manager/open_with_browser.cc:113: // browser will be show on the active desktop, we ensure the visibility. On 2014/01/31 01:12:42, mtomasz wrote: > nit: show -> shown Done.
The CQ bit was checked by skuhne@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/149703006/30001
The CQ bit was unchecked by commit-bot@chromium.org
Retried try job too often on win_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&nu...
CQ bit was unchecked on CL. Ignoring.
CQ bit was unchecked on CL. Ignoring.
The CQ bit was checked by skuhne@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/149703006/30001
The CQ bit was unchecked by commit-bot@chromium.org
Retried try job too often on win_rel for step(s) app_list_unittests, ash_unittests, aura_unittests, base_unittests, browser_tests, cacheinvalidation_unittests, cc_unittests, check_deps, check_deps2git, chrome_elf_unittests, chromedriver_unittests, components_unittests, compositor_unittests, content_browsertests, content_unittests, crypto_unittests, events_unittests, google_apis_unittests, gpu_unittests, installer_util_unittests, interactive_ui_tests, ipc_tests, jingle_unittests, media_unittests, mini_installer_test, nacl_integration, net_unittests, ppapi_unittests, printing_unittests, remoting_unittests, sql_unittests, sync_integration_tests, sync_unit_tests, telemetry_perf_unittests, telemetry_unittests, unit_tests, views_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&nu...
CQ bit was unchecked on CL. Ignoring.
CQ bit was unchecked on CL. Ignoring.
The CQ bit was checked by skuhne@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/149703006/30001
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/149703006/30001
The CQ bit was unchecked by commit-bot@chromium.org
Retried try job too often on win_x64_rel for step(s) base_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_x64_re...
CQ bit was unchecked on CL. Ignoring.
CQ bit was unchecked on CL. Ignoring.
The CQ bit was checked by skuhne@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/149703006/30001
The CQ bit was unchecked by commit-bot@chromium.org
Retried try job too often on win_x64_rel for step(s) base_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_x64_re...
CQ bit was unchecked on CL. Ignoring.
CQ bit was unchecked on CL. Ignoring.
The CQ bit was checked by skuhne@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/149703006/30001
The CQ bit was unchecked by commit-bot@chromium.org
Retried try job too often on win_x64_rel for step(s) base_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_x64_re...
CQ bit was unchecked on CL. Ignoring.
CQ bit was unchecked on CL. Ignoring.
The CQ bit was checked by skuhne@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/149703006/30001
The CQ bit was unchecked by commit-bot@chromium.org
Retried try job too often on win_x64_rel for step(s) base_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_x64_re...
CQ bit was unchecked on CL. Ignoring.
CQ bit was unchecked on CL. Ignoring.
The CQ bit was checked by skuhne@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/149703006/700002
The CQ bit was unchecked by commit-bot@chromium.org
Retried try job too often on mac_rel for step(s) telemetry_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&nu...
CQ bit was unchecked on CL. Ignoring.
CQ bit was unchecked on CL. Ignoring.
The CQ bit was checked by skuhne@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/149703006/700002
Message was sent while issue was closed.
Change committed as 248389
Message was sent while issue was closed.
CQ bit was unchecked on CL. Ignoring.
Message was sent while issue was closed.
CQ bit was unchecked on CL. Ignoring. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
