I taught this on laptops last year and got chromebooks (and laptops) this year. I have my students use the chromebooks since they are faster than my laptops. It works just fine. I think my only concern is that the screen is a bit small which makes the programming window a bit tiny.
I have a few students who already know a bit of programming and they think it is a joke that we are using the chromebooks since they aren't "real" computers. I told them to get over it
I have some other students who say that they want to be on desktops since they are more "ergonomically designed" - I have some pretty needy kids. For the most part, I like being mobile since that makes collaboration easier.