chrome/test/chromedriver/log_replay/client_replay.py
def _ReplaceSessionId(payload, id_map):
  """Update session IDs in this payload to match the current session.

  Operates in-place.

  Args:
    payload: payload in which to replace session IDs.
    id_map: mapping from logged IDs to IDs in the current session
  """
  if "sessionId" in payload and payload["sessionId"] in id_map:
    payload["sessionId"] = id_map[payload["sessionId"]]
Update session IDs in this payload to match the current session.

  Operates in-place.

  Args:
    payload: payload in which to replace session IDs.
    id_map: mapping from logged IDs to IDs in the current session
  
Update session IDs in this payload to match the current session.
Operates in-place.
Update session IDs in this payload to match the current session . Operates in - place .
def _ReplaceSessionId(payload, id_map):
  if "sessionId" in payload and payload["sessionId"] in id_map:
    payload["sessionId"] = id_map[payload["sessionId"]]
def _ReplaceSessionId ( payload , id_map ) : if "sessionId" in payload and payload [ "sessionId" ] in id_map : payload [ "sessionId" ] = id_map [ payload [ "sessionId" ] ]
Update session IDs in this payload to match the current session.
Update session IDs in this payload to match the current session .
"""Update session IDs in this payload to match the current session.

  Operates in-place.

  Args:
    payload: payload in which to replace session IDs.
    id_map: mapping from logged IDs to IDs in the current session
  """
payload
payload in which to replace session IDs.
payload in which to replace session IDs .
id_map
mapping from logged IDs to IDs in the current session
mapping from logged IDs to IDs in the current session