(Reuters) - Chevron Corp swung to a quarterly profit on Friday, helped largely by resurgence in oil and gas production as prices jumped and costs slipped.