| Index: chrome/browser/chromeos/extensions/echo_private_api.cc
|
| diff --git a/chrome/browser/chromeos/extensions/echo_private_api.cc b/chrome/browser/chromeos/extensions/echo_private_api.cc
|
| index 5580cc226ce6b42bd7d0567ec8915b2876e760cc..1b331bd5132c7c5560a3b7ac4c308430200967e6 100644
|
| --- a/chrome/browser/chromeos/extensions/echo_private_api.cc
|
| +++ b/chrome/browser/chromeos/extensions/echo_private_api.cc
|
| @@ -51,9 +51,7 @@ void EchoPrivateGetRegistrationCodeFunction::GetRegistrationCode(
|
| }
|
| // Possible ECHO code type and corresponding key name in StatisticsProvider.
|
| const std::string kCouponType = "COUPON_CODE";
|
| - const std::string kCouponCodeKey = "ubind_attribute";
|
| const std::string kGroupType = "GROUP_CODE";
|
| - const std::string kGroupCodeKey = "gbind_attribute";
|
|
|
| chromeos::system::StatisticsProvider* provider =
|
| chromeos::system::StatisticsProvider::GetInstance();
|
| @@ -61,10 +59,13 @@ void EchoPrivateGetRegistrationCodeFunction::GetRegistrationCode(
|
| if (!chromeos::KioskModeSettings::Get()->IsKioskModeEnabled()) {
|
| // In Kiosk mode, we effectively disable the registration API
|
| // by always returning an empty code.
|
| - if (type == kCouponType)
|
| - provider->GetMachineStatistic(kCouponCodeKey, &result);
|
| - else if (type == kGroupType)
|
| - provider->GetMachineStatistic(kGroupCodeKey, &result);
|
| + if (type == kCouponType) {
|
| + provider->GetMachineStatistic(chromeos::system::kOffersCouponCodeKey,
|
| + &result);
|
| + } else if (type == kGroupType) {
|
| + provider->GetMachineStatistic(chromeos::system::kOffersGroupCodeKey,
|
| + &result);
|
| + }
|
| }
|
|
|
| results_ = echo_api::GetRegistrationCode::Results::Create(result);
|
|
|