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

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

Issue 528803002: Host pairing OOBE starts at the right time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit fixed. Created 6 years, 3 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.h
diff --git a/chrome/browser/chromeos/login/wizard_controller.h b/chrome/browser/chromeos/login/wizard_controller.h
index 59568526134f95a15489004b763dd77837d67932..91f6a6ffb4df6b8cec46b99be3ff0f1fc9ed8cf0 100644
--- a/chrome/browser/chromeos/login/wizard_controller.h
+++ b/chrome/browser/chromeos/login/wizard_controller.h
@@ -30,6 +30,7 @@ class DictionaryValue;
}
namespace pairing_chromeos {
+class SharkConnectionListener;
class ControllerPairingController;
class HostPairingController;
}
@@ -302,6 +303,18 @@ class WizardController : public ScreenObserver, public ScreenManager {
// Returns false if timezone has already been resolved.
bool SetOnTimeZoneResolvedForTesting(const base::Closure& callback);
+ // Returns true for pairing remora OOBE.
+ bool IsHostPairingOobe() const;
+
+ // Starts listening for an incoming shark controller connection, if we are
+ // running remora OOBE.
+ void MaybeStartListeningForSharkConnection();
+
+ // Called when a connection to controller has been established. Wizard
+ // controller takes the ownership of |pairing_controller| after that call.
+ void OnSharkConnected(
+ scoped_ptr<pairing_chromeos::HostPairingController> pairing_controller);
+
// Whether to skip any screens that may normally be shown after login
// (registration, Terms of Service, user image selection).
static bool skip_post_login_screens_;
@@ -397,6 +410,15 @@ class WizardController : public ScreenObserver, public ScreenManager {
bool timezone_resolved_;
base::Closure on_timezone_resolved_for_testing_;
+ // True if shark device initiated connection to this device.
+ bool shark_controller_detected_;
+
+ // Listens for incoming connection from a shark controller if a regular (not
+ // pairing) remora OOBE is active. If connection is established, wizard
+ // conroller swithces to a pairing OOBE.
+ scoped_ptr<pairing_chromeos::SharkConnectionListener>
+ shark_connection_listener_;
+
base::WeakPtrFactory<WizardController> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(WizardController);
« no previous file with comments | « chrome/browser/chromeos/login/screens/host_pairing_screen.cc ('k') | chrome/browser/chromeos/login/wizard_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698