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

Issue 2661283002: cros: Clean up SessionStateDelegate refs in Chrome (Closed)

Created:
3 years, 10 months ago by xiyuan
Modified:
3 years, 9 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, alemate+watch_chromium.org, sadrul, oshima+watch_chromium.org, michaelpg+watch-options_chromium.org, aboxhall+watch_chromium.org, achuith+watch_chromium.org, nektar+watch_chromium.org, yuzo+watch_chromium.org, je_julie, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, tfarina, kalyank, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cros: Clean up SessionStateDelegate refs in Chrome Replace SessionStateDelegate references in Chrome with available equivalents since it is deprecated. BUG=648964 Review-Url: https://codereview.chromium.org/2661283002 Cr-Commit-Position: refs/heads/master@{#454041} Committed: https://chromium.googlesource.com/chromium/src/+/5d8d3ba12db7577559029d5148e8f8bfe8500f62

Patch Set 1 #

Patch Set 2 : remove unused wm_shell.h #

Patch Set 3 : rebase + fix tests #

Patch Set 4 : restore GetActiveUserProfile() to make RestoreSessionForThreeUsers test pass #

Patch Set 5 : fix test failure caused by unnecessary user switch #

Patch Set 6 : rebase #

Patch Set 7 : fix browser_tests #

Patch Set 8 : rebase #

Total comments: 17

Patch Set 9 : for #8 comments #

Total comments: 6

Patch Set 10 : for #9 comments #

Patch Set 11 : rebase #

Patch Set 12 : update browser_finder_chromeos_unittest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+247 lines, -239 lines) Patch
M chrome/browser/DEPS View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/accessibility/accessibility_manager.h View 1 2 3 4 5 6 7 5 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/accessibility/accessibility_manager.cc View 1 2 3 4 5 6 7 8 4 chunks +4 lines, -10 lines 0 comments Download
M chrome/browser/chromeos/accessibility/magnification_manager.cc View 1 2 3 4 5 6 7 8 6 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/extensions/wallpaper_private_api_unittest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/session_login_browsertest.cc View 3 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/login/ui/user_adding_screen_browsertest.cc View 5 chunks +10 lines, -12 lines 0 comments Download
M chrome/browser/memory/tab_manager.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/ash/DEPS View 1 2 3 4 5 6 7 8 9 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +6 lines, -11 lines 0 comments Download
M chrome/browser/ui/ash/multi_user/multi_user_context_menu_chromeos.cc View 4 chunks +9 lines, -17 lines 0 comments Download
M chrome/browser/ui/ash/multi_user/multi_user_context_menu_chromeos_unittest.cc View 1 2 3 4 5 6 7 8 6 chunks +27 lines, -14 lines 0 comments Download
M chrome/browser/ui/ash/multi_user/multi_user_notification_blocker_chromeos_unittest.cc View 1 2 10 chunks +12 lines, -17 lines 0 comments Download
M chrome/browser/ui/ash/multi_user/multi_user_window_manager.cc View 3 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos.h View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos.cc View 1 2 3 4 5 6 7 8 9 8 chunks +14 lines, -15 lines 0 comments Download
M chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc View 1 2 3 4 5 6 7 8 27 chunks +57 lines, -53 lines 0 comments Download
M chrome/browser/ui/ash/palette_delegate_chromeos.h View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -11 lines 0 comments Download
M chrome/browser/ui/ash/palette_delegate_chromeos.cc View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -7 lines 0 comments Download
M chrome/browser/ui/ash/session_controller_client.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/browser_finder_chromeos_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame.cc View 1 2 2 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/frame/system_menu_model_builder.cc View 3 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc View 1 3 chunks +2 lines, -5 lines 0 comments Download
M components/user_manager/user_manager.h View 1 2 3 4 5 6 2 chunks +14 lines, -1 line 0 comments Download
M components/user_manager/user_manager.cc View 1 2 3 4 5 6 1 chunk +12 lines, -0 lines 0 comments Download
M components/user_manager/user_manager_base.cc View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 71 (55 generated)
xiyuan
It is preparation of deprecating ash::SessionStateDelegate. The CL cleans up its reference in chrome. I ...
3 years, 9 months ago (2017-02-27 17:43:25 UTC) #33
James Cook
LGTM with nits https://codereview.chromium.org/2661283002/diff/140001/chrome/browser/chromeos/accessibility/accessibility_manager.cc File chrome/browser/chromeos/accessibility/accessibility_manager.cc (right): https://codereview.chromium.org/2661283002/diff/140001/chrome/browser/chromeos/accessibility/accessibility_manager.cc#newcode334 chrome/browser/chromeos/accessibility/accessibility_manager.cc:334: session_state_observer_.reset(); nit: document why this has ...
3 years, 9 months ago (2017-02-27 21:20:29 UTC) #36
xiyuan
https://codereview.chromium.org/2661283002/diff/140001/chrome/browser/chromeos/accessibility/accessibility_manager.cc File chrome/browser/chromeos/accessibility/accessibility_manager.cc (right): https://codereview.chromium.org/2661283002/diff/140001/chrome/browser/chromeos/accessibility/accessibility_manager.cc#newcode334 chrome/browser/chromeos/accessibility/accessibility_manager.cc:334: session_state_observer_.reset(); On 2017/02/27 21:20:28, James Cook wrote: > nit: ...
3 years, 9 months ago (2017-02-27 22:16:22 UTC) #38
xiyuan
+owners sky@: chrome/browser/DEPS chrome/browser/ui/ash/DEPS chrome/browser/ui/views/frame/* achuith@: components/user_manager/* chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc dmazzoni@: chrome/browser/chromeos/accessibility/* Thanks.
3 years, 9 months ago (2017-02-27 22:20:57 UTC) #41
sky
https://codereview.chromium.org/2661283002/diff/160001/chrome/browser/ui/ash/DEPS File chrome/browser/ui/ash/DEPS (right): https://codereview.chromium.org/2661283002/diff/160001/chrome/browser/ui/ash/DEPS#newcode13 chrome/browser/ui/ash/DEPS:13: "+ash/common/session", Is this temporary?
3 years, 9 months ago (2017-02-27 23:51:32 UTC) #44
xiyuan
https://codereview.chromium.org/2661283002/diff/160001/chrome/browser/ui/ash/DEPS File chrome/browser/ui/ash/DEPS (right): https://codereview.chromium.org/2661283002/diff/160001/chrome/browser/ui/ash/DEPS#newcode13 chrome/browser/ui/ash/DEPS:13: "+ash/common/session", On 2017/02/27 23:51:32, sky wrote: > Is this ...
3 years, 9 months ago (2017-02-28 00:19:58 UTC) #45
sky
LGTM https://codereview.chromium.org/2661283002/diff/160001/chrome/browser/ui/ash/DEPS File chrome/browser/ui/ash/DEPS (right): https://codereview.chromium.org/2661283002/diff/160001/chrome/browser/ui/ash/DEPS#newcode13 chrome/browser/ui/ash/DEPS:13: "+ash/common/session", On 2017/02/28 00:19:58, xiyuan wrote: > On ...
3 years, 9 months ago (2017-02-28 00:51:02 UTC) #46
Mr4D (OOO till 08-26)
Basically c/b/ui/ash/Multi_user looks good, do you know why the removeObserver is now needed? https://codereview.chromium.org/2661283002/diff/160001/chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos.cc File ...
3 years, 9 months ago (2017-02-28 04:56:56 UTC) #47
Mr4D (OOO till 08-26)
Basically c/b/ui/ash/Multi_user looks good, do you know why the removeObserver is now needed?
3 years, 9 months ago (2017-02-28 04:56:59 UTC) #48
Mr4D (OOO till 08-26)
Basically c/b/ui/ash/Multi_user looks good, do you know why the removeObserver is now needed?
3 years, 9 months ago (2017-02-28 04:56:59 UTC) #49
dmazzoni
lgtm for accessibility
3 years, 9 months ago (2017-02-28 06:17:42 UTC) #50
xiyuan
https://codereview.chromium.org/2661283002/diff/160001/chrome/browser/ui/ash/DEPS File chrome/browser/ui/ash/DEPS (right): https://codereview.chromium.org/2661283002/diff/160001/chrome/browser/ui/ash/DEPS#newcode13 chrome/browser/ui/ash/DEPS:13: "+ash/common/session", On 2017/02/28 00:51:02, sky wrote: > On 2017/02/28 ...
3 years, 9 months ago (2017-02-28 18:35:50 UTC) #51
Mr4D (OOO till 08-26)
Thanks for looking! lgtm
3 years, 9 months ago (2017-03-01 20:57:34 UTC) #64
achuithb
user_manager lgtm
3 years, 9 months ago (2017-03-01 21:04:22 UTC) #65
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2661283002/220001
3 years, 9 months ago (2017-03-01 21:05:42 UTC) #68
commit-bot: I haz the power
3 years, 9 months ago (2017-03-01 21:35:32 UTC) #71
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/5d8d3ba12db7577559029d5148e8...

Powered by Google App Engine
This is Rietveld 408576698