Chromium Code Reviews| Index: chrome/browser/chromeos/login/wizard_controller.cc |
| diff --git a/chrome/browser/chromeos/login/wizard_controller.cc b/chrome/browser/chromeos/login/wizard_controller.cc |
| index a5be676dd96b5d2a4fd8ebc160019636e0b73720..c6862a4c707481d0a57616ab6380ddbbb5fcd272 100644 |
| --- a/chrome/browser/chromeos/login/wizard_controller.cc |
| +++ b/chrome/browser/chromeos/login/wizard_controller.cc |
| @@ -890,6 +890,20 @@ void WizardController::InitiateOOBEUpdate() { |
| return; |
| } |
| + // If this is a Cellular First device, instruct UpdateEngine to allow |
| + // updates over cellular data connections. |
| + if (chromeos::switches::IsCellularFirstDevice()) { |
| + DBusThreadManager::Get() |
| + ->GetUpdateEngineClient() |
| + ->SetUpdateOverCellularPermission( |
| + true, base::Bind(&WizardController::InitiateOOBEUpdateHelper, |
| + weak_factory_.GetWeakPtr())); |
| + } else { |
| + InitiateOOBEUpdateHelper(); |
| + } |
| +} |
| + |
| +void WizardController::InitiateOOBEUpdateHelper() { |
| VLOG(1) << "InitiateOOBEUpdate"; |
|
stevenjb
2017/03/01 23:11:56
We should make this method more descriptive (e.g.
kumarniranjan
2017/03/02 00:29:34
Done.
|
| SetCurrentScreenSmooth(GetScreen(OobeScreen::SCREEN_OOBE_UPDATE), true); |
| UpdateScreen::Get(this)->StartNetworkCheck(); |