commit | cb491c4cb294b8b0862e59f0b34a4f702d473e69 | [log] [tgz] |
---|---|---|
author | Mikel Astiz <[email protected]> | Thu May 24 13:08:26 2018 |
committer | Commit Bot <[email protected]> | Thu May 24 13:08:26 2018 |
tree | e8977a44852929dce08aceecf32f6e57051f00de | |
parent | ceb62691468baa50d951f625453f80f77e870c66 [diff] |
Make vending of sync IDs (tab_node_id) more explicit Prior to this patch, it was buried in GetTabNodeFromLocalTabId() which sometimes made a lookup only (if the tab ID was already associated) and some other times vended a new sync ID (via TabNodePool::AssociateWithFreeTabNode()). We refactor the APIs to surface this logic more explicitly in the only calling site, in LocalSessionEventHandlerImpl. As a bonus point, a related test is added to SessionSyncBridgeTest, which also passes prior to this patch. Bug: 843554 Change-Id: Ie9a2b136dbfb631e43d3abf2c345c07036670eb9 Reviewed-on: https://chromium-review.googlesource.com/1071572 Reviewed-by: Marc Treib <[email protected]> Commit-Queue: Mikel Astiz <[email protected]> Cr-Commit-Position: refs/heads/master@{#561478}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .