Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Issue 2467023004: Make the toggle touchscreen/touchpad shortcuts apply per-user (Closed)

Created:
4 years, 1 month ago by afakhry
Modified:
4 years, 1 month ago
Reviewers:
stevenjb, gab
CC:
chromium-reviews, oshima+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make the toggle touchscreen/touchpad shortcuts apply per-user These are debug shortcuts behing a flag, if one user, who has the flag enabled, disables the touchscreen, other signed-in users will be affected too. It can be very confusing for users who have the debug shortcut flags disabled. This CL makes these settings apply per user. BUG=597535 TEST=(1) Login with user_1, enabled ash-debug-shortcuts flag, Hit Ctrl+Shift+T to disable touchscreen. Signout, signin, touchscreen is still disabled. (2) Signin with user_2, touchscreen is still enabled for user_2. (3) Signin with user_1 and user_2 at the same time with multi-user signin, switch between them using Ctrl+Alt+>, user_1 should have a disabled touchscreen, user_2 has an enabled touchscreen. Committed: https://crrev.com/e2bc0da541c5601fbb3bb1bc7d93a0617827ca76 Cr-Commit-Position: refs/heads/master@{#431011}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase #

Patch Set 3 : gab's comment #

Total comments: 5

Patch Set 4 : Doing the migration right #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -39 lines) Patch
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/preferences.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/system/input_device_settings.h View 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/system/input_device_settings.cc View 4 chunks +31 lines, -18 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 6 chunks +10 lines, -16 lines 0 comments Download

Messages

Total messages: 36 (21 generated)
afakhry
Steven, could you please review? Thank you.
4 years, 1 month ago (2016-11-03 16:52:47 UTC) #7
stevenjb
lgtm
4 years, 1 month ago (2016-11-04 22:55:58 UTC) #8
afakhry
[email protected]: Please review changes in browser_prefs.cc
4 years, 1 month ago (2016-11-07 17:08:47 UTC) #10
afakhry
bauerb is OOO. gab@ please review changes in browser_prefs.cc
4 years, 1 month ago (2016-11-07 17:10:48 UTC) #13
gab
https://codereview.chromium.org/2467023004/diff/1/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (left): https://codereview.chromium.org/2467023004/diff/1/chrome/browser/prefs/browser_prefs.cc#oldcode428 chrome/browser/prefs/browser_prefs.cc:428: chromeos::system::InputDeviceSettings::RegisterPrefs(registry); Cleanup unused state in MigrateObsoleteBrowserPrefs() below -- see ...
4 years, 1 month ago (2016-11-07 21:47:13 UTC) #14
afakhry
https://codereview.chromium.org/2467023004/diff/1/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (left): https://codereview.chromium.org/2467023004/diff/1/chrome/browser/prefs/browser_prefs.cc#oldcode428 chrome/browser/prefs/browser_prefs.cc:428: chromeos::system::InputDeviceSettings::RegisterPrefs(registry); On 2016/11/07 21:47:13, gab wrote: > Cleanup unused ...
4 years, 1 month ago (2016-11-08 21:30:37 UTC) #16
afakhry
https://codereview.chromium.org/2467023004/diff/40001/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (right): https://codereview.chromium.org/2467023004/diff/40001/chrome/browser/prefs/browser_prefs.cc#newcode712 chrome/browser/prefs/browser_prefs.cc:712: local_state->ClearPref(prefs::kTouchPadEnabled); Apparently the prefs have to be registered in ...
4 years, 1 month ago (2016-11-08 22:36:16 UTC) #20
gab
https://codereview.chromium.org/2467023004/diff/40001/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (right): https://codereview.chromium.org/2467023004/diff/40001/chrome/browser/prefs/browser_prefs.cc#newcode712 chrome/browser/prefs/browser_prefs.cc:712: local_state->ClearPref(prefs::kTouchPadEnabled); On 2016/11/08 22:36:16, afakhry wrote: > Apparently the ...
4 years, 1 month ago (2016-11-09 16:30:16 UTC) #21
gab
https://codereview.chromium.org/2467023004/diff/40001/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (right): https://codereview.chromium.org/2467023004/diff/40001/chrome/browser/prefs/browser_prefs.cc#newcode712 chrome/browser/prefs/browser_prefs.cc:712: local_state->ClearPref(prefs::kTouchPadEnabled); On 2016/11/09 16:30:16, gab wrote: > On 2016/11/08 ...
4 years, 1 month ago (2016-11-09 16:31:56 UTC) #22
gab
https://codereview.chromium.org/2467023004/diff/40001/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (right): https://codereview.chromium.org/2467023004/diff/40001/chrome/browser/prefs/browser_prefs.cc#newcode712 chrome/browser/prefs/browser_prefs.cc:712: local_state->ClearPref(prefs::kTouchPadEnabled); On 2016/11/09 16:31:55, gab wrote: > On 2016/11/09 ...
4 years, 1 month ago (2016-11-09 16:33:31 UTC) #23
afakhry
https://codereview.chromium.org/2467023004/diff/40001/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (right): https://codereview.chromium.org/2467023004/diff/40001/chrome/browser/prefs/browser_prefs.cc#newcode712 chrome/browser/prefs/browser_prefs.cc:712: local_state->ClearPref(prefs::kTouchPadEnabled); On 2016/11/09 16:33:31, gab wrote: > On 2016/11/09 ...
4 years, 1 month ago (2016-11-09 17:21:46 UTC) #26
gab
prefs lgtm
4 years, 1 month ago (2016-11-09 19:19:48 UTC) #29
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/2467023004/60001
4 years, 1 month ago (2016-11-09 19:37:01 UTC) #32
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-09 19:42:31 UTC) #34
commit-bot: I haz the power
4 years, 1 month ago (2016-11-09 19:44:54 UTC) #36
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e2bc0da541c5601fbb3bb1bc7d93a0617827ca76
Cr-Commit-Position: refs/heads/master@{#431011}

Powered by Google App Engine
This is Rietveld 408576698