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

Unified Diff: components/pairing/fake_host_pairing_controller.h

Issue 652743003: Fix update and enrollment flow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: indent Created 6 years, 2 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: components/pairing/fake_host_pairing_controller.h
diff --git a/components/pairing/fake_host_pairing_controller.h b/components/pairing/fake_host_pairing_controller.h
index 138963aad030cb00fe9d1f2e752df9a59cf2c70b..48335cea658f9bf704083666ec8690cbaad3ec1a 100644
--- a/components/pairing/fake_host_pairing_controller.h
+++ b/components/pairing/fake_host_pairing_controller.h
@@ -33,7 +33,11 @@ class FakeHostPairingController
// Applies given |config| to flow.
void ApplyConfig(const std::string& config);
- // Overridden from HostPairingFlow:
+ private:
+ void ChangeStage(Stage new_stage);
+ void ChangeStageLater(Stage new_stage);
+
+ // HostPairingController:
virtual void AddObserver(Observer* observer) override;
virtual void RemoveObserver(Observer* observer) override;
virtual Stage GetCurrentStage() override;
@@ -42,13 +46,10 @@ class FakeHostPairingController
virtual std::string GetConfirmationCode() override;
virtual std::string GetEnrollmentDomain() override;
virtual void OnUpdateStatusChanged(UpdateStatus update_status) override;
- virtual void SetEnrollmentComplete(bool success) override;
-
- private:
- void ChangeStage(Stage new_stage);
- void ChangeStageLater(Stage new_stage);
+ virtual void OnEnrollmentStatusChanged(
+ EnrollmentStatus enrollment_status) override;
- // HostPairingFlow::Observer:
+ // HostPairingController::Observer:
virtual void PairingStageChanged(Stage new_stage) override;
virtual void ConfigureHost(bool accepted_eula,
const std::string& lang,
« no previous file with comments | « components/pairing/bluetooth_host_pairing_controller.cc ('k') | components/pairing/fake_host_pairing_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698