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

Issue 55303003: Fixing drag and drop visibility issues of tabs on a visiting desktop (Closed)

Created:
7 years, 1 month ago by Mr4D (OOO till 08-26)
Modified:
7 years, 1 month ago
Reviewers:
sky
CC:
chromium-reviews, kalyank, sadrul, dcheng, ben+ash_chromium.org, tfarina, oshima
Visibility:
Public.

Description

Fixing drag and drop visibility issues of tabs on a visiting desktop A new browser will be created when a user drags a tab off a tab strip. This browser will automatically get the context of its parent. When running in multi profile / multiple desktop mode, a browser can visit another user's desktop. In that case that tab will get the ownership of the original browser and made invisible since it belongs to an invisible user. This patch is transferring the visibility of the newly created browser to the current user. Note that this cannot be automatically done since usually browsers get created for "a user" and are automatically visible and owned by "that user" - not the current one. This case is special since it requires that the browser is created from the current user for another user. While fixing this I have found one problem in the MultiUserWindowManager where the initial show state was not stored and taken into account on transferring to another desktop. BUG=309793 TEST=unittest & visual test Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=232644

Patch Set 1 #

Total comments: 1

Patch Set 2 : Removed code from the TabDragController #

Patch Set 3 : Added todo #

Patch Set 4 : Self nit #

Patch Set 5 : Changed #

Patch Set 6 : Fixed unit test #

Patch Set 7 : Unit test fix #

Patch Set 8 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -8 lines) Patch
M chrome/browser/ui/ash/launcher/browser_status_monitor.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/multi_user_window_manager.cc View 1 2 3 4 5 6 7 5 chunks +65 lines, -6 lines 0 comments Download
M chrome/browser/ui/ash/multi_user_window_manager_unittest.cc View 1 chunk +35 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Mr4D (OOO till 08-26)
Please have a look!
7 years, 1 month ago (2013-10-31 21:47:16 UTC) #1
sky
https://codereview.chromium.org/55303003/diff/1/chrome/browser/ui/views/tabs/tab_drag_controller.cc File chrome/browser/ui/views/tabs/tab_drag_controller.cc (right): https://codereview.chromium.org/55303003/diff/1/chrome/browser/ui/views/tabs/tab_drag_controller.cc#newcode261 chrome/browser/ui/views/tabs/tab_drag_controller.cc:261: void MoveBrowserToCurrentUser(Browser* browser) { This feels wrong. Why do ...
7 years, 1 month ago (2013-10-31 22:04:04 UTC) #2
sky
I do get why you're doing this, but there should be a cleaner way than ...
7 years, 1 month ago (2013-10-31 22:04:34 UTC) #3
Mr4D (OOO till 08-26)
Sky, I have changed the logic to look at active events and open menus to ...
7 years, 1 month ago (2013-11-01 03:13:45 UTC) #4
sky
LGTM
7 years, 1 month ago (2013-11-01 23:32:56 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/55303003/60002
7 years, 1 month ago (2013-11-01 23:37:08 UTC) #6
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=171017
7 years, 1 month ago (2013-11-02 01:32:53 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/55303003/60002
7 years, 1 month ago (2013-11-02 01:45:57 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/55303003/460003
7 years, 1 month ago (2013-11-02 01:57:56 UTC) #9
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=171052
7 years, 1 month ago (2013-11-02 03:31:40 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/55303003/850001
7 years, 1 month ago (2013-11-02 06:00:49 UTC) #11
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=171091
7 years, 1 month ago (2013-11-02 07:32:10 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/55303003/850001
7 years, 1 month ago (2013-11-02 13:39:49 UTC) #13
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=171111
7 years, 1 month ago (2013-11-02 15:03:17 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/55303003/1120001
7 years, 1 month ago (2013-11-02 15:46:21 UTC) #15
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=218133
7 years, 1 month ago (2013-11-02 17:42:21 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/55303003/1120001
7 years, 1 month ago (2013-11-02 17:57:37 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/55303003/1120001
7 years, 1 month ago (2013-11-02 19:36:50 UTC) #18
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=96861
7 years, 1 month ago (2013-11-02 21:34:28 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/55303003/1120001
7 years, 1 month ago (2013-11-02 22:06:42 UTC) #20
commit-bot: I haz the power
7 years, 1 month ago (2013-11-02 23:53:29 UTC) #21
Message was sent while issue was closed.
Change committed as 232644

Powered by Google App Engine
This is Rietveld 408576698