Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(953)

Unified Diff: chrome/browser/chromeos/login/wizard_controller.cc

Issue 2694923005: Appropriate handling for Cellular First devices. (Closed)
Patch Set: rebased Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 d850f2edf4c4e33ad2febea0654de3a39ac48825..eeb7042c2ddbefe820a1e6264daa8cbf62d0539f 100644
--- a/chrome/browser/chromeos/login/wizard_controller.cc
+++ b/chrome/browser/chromeos/login/wizard_controller.cc
@@ -877,7 +877,21 @@ void WizardController::InitiateOOBEUpdate() {
return;
}
- VLOG(1) << "InitiateOOBEUpdate";
+ // 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::StartOOBEUpdate,
+ weak_factory_.GetWeakPtr()));
+ } else {
+ StartOOBEUpdate();
+ }
+}
+
+void WizardController::StartOOBEUpdate() {
+ VLOG(1) << "StartOOBEUpdate";
SetCurrentScreenSmooth(GetScreen(OobeScreen::SCREEN_OOBE_UPDATE), true);
UpdateScreen::Get(this)->StartNetworkCheck();
}
« no previous file with comments | « chrome/browser/chromeos/login/wizard_controller.h ('k') | chrome/browser/chromeos/login/wizard_controller_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698