Skip to content

Commit

Permalink
carrier_lock: Implement the main lock manager class
Browse files Browse the repository at this point in the history
The main Cellular Carrier Lock class responsible for checking state
of the device and applying lock configuration on cellular modem.

Bug: b:262288980
Test: CarrierLockStartManager

Change-Id: I65520ed4799a36fdc0a3e0185b6923088ca35893
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3870931
Reviewed-by: Regan Hsu <hsuregan@chromium.org>
Reviewed-by: Gordon Seto <gordonseto@google.com>
Reviewed-by: Rushan Suleymanov <rushans@google.com>
Reviewed-by: Achuith Bhandarkar <achuith@chromium.org>
Commit-Queue: Michał Mazur <michamazur@google.com>
Cr-Commit-Position: refs/heads/main@{#1209894}
  • Loading branch information
Michal Mazur authored and Chromium LUCI CQ committed Oct 15, 2023
1 parent eceae7f commit a1744b8
Show file tree
Hide file tree
Showing 5 changed files with 1,320 additions and 1 deletion.
6 changes: 5 additions & 1 deletion chromeos/ash/components/carrier_lock/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ component("carrier_lock") {
deps = [
":carrier_lock_proto",
"//base",
"//chrome/browser:browser_process",
"//chromeos/ash/components/dbus/shill",
"//chromeos/ash/components/network",
"//chromeos/ash/components/system",
Expand All @@ -30,6 +29,10 @@ component("carrier_lock") {
]

sources = [
"//chromeos/ash/components/network/fake_network_3gpp_handler.cc",
"//chromeos/ash/components/network/fake_network_3gpp_handler.h",
"carrier_lock_manager.cc",
"carrier_lock_manager.h",
"common.h",
"fake_fcm_topic_subscriber.cc",
"fake_fcm_topic_subscriber.h",
Expand All @@ -55,6 +58,7 @@ source_set("unit_tests") {
testonly = true

sources = [
"carrier_lock_manager_unittest.cc",
"fcm_topic_subscriber_unittest.cc",
"provisioning_config_fetcher_unittest.cc",
"psm_claim_verifier_unittest.cc",
Expand Down
3 changes: 3 additions & 0 deletions chromeos/ash/components/carrier_lock/DEPS
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
include_rules = [
"+chromeos/ash/components/network",
"+chromeos/ash/components/system",
"+components/gcm_driver",
"+components/session_manager",
"+google_apis",
"+third_party/private_membership",
]

0 comments on commit a1744b8

Please sign in to comment.