forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Settings Split: Implement keyboard policies in pref handler
Bug: b/241965700 Change-Id: I5579395a53df6054e3a23bba3086e3b543aecc0c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4367666 Reviewed-by: Michael Checo <[email protected]> Commit-Queue: David Padlipsky <[email protected]> Cr-Commit-Position: refs/heads/main@{#1123980}
- Loading branch information
1 parent
5269ebc
commit 3db66e4
Showing
8 changed files
with
314 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,12 +52,15 @@ constexpr char kUserEmail2[] = "[email protected]"; | |
|
||
class FakeKeyboardPrefHandler : public KeyboardPrefHandler { | ||
public: | ||
void InitializeKeyboardSettings(PrefService* pref_service, | ||
mojom::Keyboard* keyboard) override { | ||
void InitializeKeyboardSettings( | ||
PrefService* pref_service, | ||
const mojom::KeyboardPolicies& keyboard_policies, | ||
mojom::Keyboard* keyboard) override { | ||
keyboard->settings = mojom::KeyboardSettings::New(); | ||
num_keyboard_settings_initialized_++; | ||
} | ||
void UpdateKeyboardSettings(PrefService* pref_service, | ||
const mojom::KeyboardPolicies& keyboard_policies, | ||
const mojom::Keyboard& keyboard) override { | ||
num_keyboard_settings_updated_++; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.