boca: Add new navigation type.
Add new navigatype that support same domain unlimited and 1 level deep for other navigation. Bug: b:375036317 Test: existing unit test Change-Id: I56043d95d9b1cee2309ca4d760b2d5d2fe9f13f4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5955391 Reviewed-by: Benjamin Zielinski <bzielinski@google.com> Reviewed-by: Elly FJ <ellyjones@chromium.org> Commit-Queue: April Zhou <aprilzhou@google.com> Cr-Commit-Position: refs/heads/main@{#1373475}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
69d05f7d37
commit
edca0fb8fc
ash/webui/boca_ui
chromeos/ash/components/boca/session_api
@ -82,6 +82,7 @@ enum NavigationType {
|
||||
kBlock,
|
||||
kDomain,
|
||||
kLimited,
|
||||
kSameDomainOpenOtherDomainLimited,
|
||||
};
|
||||
|
||||
struct ControlledTab {
|
||||
|
@ -53,6 +53,7 @@ export enum NavigationType {
|
||||
BLOCK = 2,
|
||||
DOMAIN = 3,
|
||||
LIMITED = 4,
|
||||
SAME_DOMAIN_OPEN_OTHER_DOMAIN_LIMITED = 5
|
||||
}
|
||||
|
||||
export enum JoinMethod {
|
||||
|
@ -67,6 +67,10 @@ namespace ash::boca {
|
||||
if (type == "LIMITED_NAVIGATION") {
|
||||
return ::boca::LockedNavigationOptions::LIMITED_NAVIGATION;
|
||||
}
|
||||
if (type == "SAME_DOMAIN_OPEN_OTHER_DOMAIN_LIMITED_NAVIGATION") {
|
||||
return ::boca::LockedNavigationOptions::
|
||||
SAME_DOMAIN_OPEN_OTHER_DOMAIN_LIMITED_NAVIGATION;
|
||||
}
|
||||
return ::boca::LockedNavigationOptions::NAVIGATION_TYPE_UNKNOWN;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user