Pass "client_id" param to the enrollment frame.
commit54308302f2fe310fc34c14b01060d1561d3b5548
authordzhioev <dzhioev@chromium.org>
Tue, 11 Aug 2015 19:31:41 +0000 (11 12:31 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 11 Aug 2015 19:32:21 +0000 (11 19:32 +0000)
tree1f343b7c8db823fdfab931501e68adaf33019605
parenta9cbe267748e0360f8c994a1c7209f86f33b944f
Pass "client_id" param to the enrollment frame.

A "client_id" param passed to GAIA should match a "client_id" that is used for
token exchange afterwards, otherwise token exchange doesn't work. If the param
is not specified, GAIA uses default value, which is the same as official Google
Chrome's "client_id".

We didn't provide "client_id" for enrollment frame, as a result enrollment only
worked in official builds.

BUG=495527
TEST=browser_tests

Review URL: https://codereview.chromium.org/1282393002

Cr-Commit-Position: refs/heads/master@{#342871}
chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.js
chrome/browser/ui/webui/chromeos/login/enrollment_screen_handler.cc
google_apis/gaia/fake_gaia.cc