tree: b41c7f318937b51e9e38808e3aceac86f440be9e [path history] [tgz]
  1. android/
  2. BUILD.gn
  3. COMMON_METADATA
  4. components_unittests.filter
  5. DEPS
  6. DIR_METADATA
  7. features.cc
  8. features.h
  9. OWNERS
  10. README.md
  11. saved_tab_group.cc
  12. saved_tab_group.h
  13. saved_tab_group_model.cc
  14. saved_tab_group_model.h
  15. saved_tab_group_model_observer.h
  16. saved_tab_group_model_unittest.cc
  17. saved_tab_group_proto_conversion_unittest.cc
  18. saved_tab_group_sync_bridge.cc
  19. saved_tab_group_sync_bridge.h
  20. saved_tab_group_sync_bridge_unittest.cc
  21. saved_tab_group_tab.cc
  22. saved_tab_group_tab.h
  23. saved_tab_group_test_utils.cc
  24. saved_tab_group_test_utils.h
  25. saved_tab_group_unittest.cc
  26. shared_tab_group_data_sync_bridge.cc
  27. shared_tab_group_data_sync_bridge.h
  28. shared_tab_group_data_sync_bridge_unittest.cc
  29. stats.cc
  30. stats.h
  31. tab_group_sync_service.h
  32. tab_group_sync_service_impl.cc
  33. tab_group_sync_service_impl.h
  34. tab_group_sync_service_unittest.cc
  35. types.h
components/saved_tab_groups/README.md

SavedTabGroups

Tab Groups are an effective way to enable users to organize their tabs, but are ephemeral, and disappear after the user exits a session. Saved tab groups can be saved and recalled allowing users to keep the state of their working state across browsing sessions.

Saved Tab Groups are built on sync's storage layer. This storage solution works across sessions and when sync is enabled, saved tab groups will sync across devices updating the tabs and other metadata about the tab group in real-time.

Testing

To run all the relevant C++ unit tests, you can run the components_unittests target and give the saved_tab_groups filter file as an argument:

./out/Default/components_unittests --test-launcher-filter-file=components/saved_tab_groups/components_unittests.filter

To keep the list of tests updated, you must add the test group name to the components_unittests.filter file whenever writing a new test file.