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

Issue 23580008: Fixed problems with pin/unpin preferences changing for not running applications & icon order chang… (Closed)

Created:
7 years, 3 months ago by Mr4D (OOO till 08-26)
Modified:
7 years, 3 months ago
Reviewers:
harrym, James Cook, oshima
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Fixed problems with pin/unpin preferences changing for not running applications & icon order changes upon sync operations There are multiple problems fixed with this patch: 1. When a running and pinned app (Windowed V1, V2) gets unpinned via sync operation (or multi user switching), the icon will disappear and the sytem gets into an unstable state (-> Crash later on). 2. When a running app (Windowed V1, V2) gets pinned via a sync operation (or multi user switching), the icon will be shown, but get into an unsecure state which can lead to crashes. 3. There are several cases, where the chrome browser icon does change locations due to sync / multi user switching operations. In this case the icon can shift by one spot to the right. 4. There were some problems with the alternate shelf layout. That all said: With M32 we should possibly come up with a new way of storing running V1/V2 applications since the running applications are not stored by the preferences and can therefore flip around when switching between users AND windowed V1 apps currently have the same "weight" as an application launcher - which means that they will "float around" in the shelf between sync / switch operations. My visual test to see that everything was working was as follows: In Multi session mode, have one user with the following applications pinned: Chrome Shop, VNC, Angry Birds, gmail, calendar, chrome and another user with two other applications and chrome. Switch between the two and everything should be fine. Run VNC (V2 app). Switch to user 2 and see that it is unpinned at the end of the list. Switch back and see it sliding back to where it belongs. Then do the same for a windowed V1 app (gmail). Note that the gmail item will not float to the end of the list in user 2 - which is because of the already mentioned weights. NOTE: This CL got reverted due to an ASAN failure which was fixed by another fix I did over the day waiting to land this thing. So folded this in. BUG=294435, 294231, 294227, 295965 TEST=unit tests and visual (see above) R=oshima@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=224611

Patch Set 1 #

Total comments: 18

Patch Set 2 : addressed #

Patch Set 3 : Fixing build problem #

Patch Set 4 : Added two more unit tests and fixed one more problem while waiting for CQ (will it ever pass the ot… #

Patch Set 5 : Fixed ASAN and merged a follow up CL into this #

Patch Set 6 : Removed logging statement #

Unified diffs Side-by-side diffs Delta from patch set Stats (+601 lines, -96 lines) Patch
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.h View 1 2 3 4 chunks +28 lines, -18 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc View 1 2 3 4 5 10 chunks +181 lines, -75 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc View 1 2 3 4 10 chunks +392 lines, -3 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
Mr4D (OOO till 08-26)
Please have a look!
7 years, 3 months ago (2013-09-19 19:10:15 UTC) #1
Mr4D (OOO till 08-26)
Added Oshima since James does not feel well. Oshima, can you please have a look?
7 years, 3 months ago (2013-09-19 19:43:49 UTC) #2
oshima
Man, this is complicated! https://codereview.chromium.org/23580008/diff/1/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc File chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc (right): https://codereview.chromium.org/23580008/diff/1/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc#newcode445 chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc:445: } else { can you ...
7 years, 3 months ago (2013-09-19 21:42:10 UTC) #3
oshima
and... https://codereview.chromium.org/23580008/diff/1/chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc File chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc (right): https://codereview.chromium.org/23580008/diff/1/chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc#newcode225 chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc:225: return items.Pass(); can you just inline them?
7 years, 3 months ago (2013-09-19 21:43:25 UTC) #4
Mr4D (OOO till 08-26)
Addressed! Please have another look! https://codereview.chromium.org/23580008/diff/1/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc File chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc (right): https://codereview.chromium.org/23580008/diff/1/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc#newcode445 chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc:445: } else { Ahhh! ...
7 years, 3 months ago (2013-09-19 22:31:50 UTC) #5
oshima
lgtm
7 years, 3 months ago (2013-09-19 23:34:35 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/23580008/33001
7 years, 3 months ago (2013-09-20 00:21:09 UTC) #7
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 3 months ago (2013-09-20 01:56:38 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/23580008/12001
7 years, 3 months ago (2013-09-20 03:10:12 UTC) #9
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) sync_integration_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=199819
7 years, 3 months ago (2013-09-20 06:56:26 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/23580008/12001
7 years, 3 months ago (2013-09-20 14:00:19 UTC) #11
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) sync_integration_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=200110
7 years, 3 months ago (2013-09-20 18:56:24 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/23580008/41001
7 years, 3 months ago (2013-09-20 19:17:13 UTC) #13
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) sync_integration_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=200358
7 years, 3 months ago (2013-09-20 22:20:25 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/23580008/41001
7 years, 3 months ago (2013-09-20 22:52:44 UTC) #15
Mr4D (OOO till 08-26)
Committed patchset #4 manually as r224514 (presubmit successful).
7 years, 3 months ago (2013-09-20 23:09:23 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/23580008/59001
7 years, 3 months ago (2013-09-21 01:31:37 UTC) #17
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) sync_integration_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=200660
7 years, 3 months ago (2013-09-21 04:11:26 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/23580008/59001
7 years, 3 months ago (2013-09-21 04:12:31 UTC) #19
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=156685
7 years, 3 months ago (2013-09-21 06:37:28 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/23580008/59001
7 years, 3 months ago (2013-09-21 13:43:57 UTC) #21
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=156724
7 years, 3 months ago (2013-09-21 16:20:50 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/23580008/59001
7 years, 3 months ago (2013-09-21 16:21:37 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/23580008/115001
7 years, 3 months ago (2013-09-21 16:59:44 UTC) #24
Mr4D (OOO till 08-26)
7 years, 3 months ago (2013-09-21 23:09:54 UTC) #25
Message was sent while issue was closed.
Committed patchset #6 manually as r224611 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698