* Serialize TreeTabNode data to session service When a TreeTabNode has been created, updated or destroyed, we serialize the TreeTabNode data to the session service. This data is used to restore the TreeTabNode hierarchy when the browser is restarted, or when a tab is restored from recently closed tabs.
33 lines
911 B
Plaintext
33 lines
911 B
Plaintext
# Copyright (c) 2022 The Brave Authors. All rights reserved.
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
# You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
|
|
import("//chrome/common/features.gni")
|
|
|
|
assert(enable_session_service)
|
|
|
|
source_set("sessions") {
|
|
sources = [ "brave_session_keys.h" ]
|
|
}
|
|
|
|
source_set("browser_tests") {
|
|
testonly = true
|
|
if (!is_android) {
|
|
defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
|
|
sources = [ "brave_session_restore_browsertest.cc" ]
|
|
|
|
deps = [
|
|
":sessions",
|
|
"//base/test:test_support",
|
|
"//brave/browser/ui/tabs:tab_strip",
|
|
"//brave/browser/ui/tabs:tree_tab",
|
|
"//brave/components/tabs",
|
|
"//chrome/browser",
|
|
"//chrome/browser/profiles:profile",
|
|
"//chrome/test:test_support_ui",
|
|
"//components/sessions",
|
|
]
|
|
}
|
|
}
|