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

Unified Diff: components/pairing/fake_host_pairing_controller.cc

Issue 1519883003: 1) Add basic configuration (network connection, language, keyboard layout, timezone) setup page. 2)… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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.cc
diff --git a/components/pairing/fake_host_pairing_controller.cc b/components/pairing/fake_host_pairing_controller.cc
index ebd708474931c0e378e086f340e6fe89e9f8ae1b..127fb2dc437a5789d236abff93da058f24cfc753 100644
--- a/components/pairing/fake_host_pairing_controller.cc
+++ b/components/pairing/fake_host_pairing_controller.cc
@@ -72,13 +72,6 @@ void FakeHostPairingController::ApplyConfig(const std::string& config) {
enrollment_domain_ = dict.count("domain") ? dict["domain"] : "example.com";
}
-void FakeHostPairingController::ChangeStage(Stage new_stage) {
- if (current_stage_ == new_stage)
- return;
- current_stage_ = new_stage;
- FOR_EACH_OBSERVER(Observer, observers_, PairingStageChanged(new_stage));
-}
-
void FakeHostPairingController::ChangeStageLater(Stage new_stage) {
base::MessageLoop::current()->PostDelayedTask(
FROM_HERE,
@@ -100,6 +93,13 @@ HostPairingController::Stage FakeHostPairingController::GetCurrentStage() {
return current_stage_;
}
+void FakeHostPairingController::ChangeStage(Stage new_stage) {
+ if (current_stage_ == new_stage)
+ return;
+ current_stage_ = new_stage;
+ FOR_EACH_OBSERVER(Observer, observers_, PairingStageChanged(new_stage));
+}
+
void FakeHostPairingController::StartPairing() {
CHECK(current_stage_ == STAGE_NONE);
if (start_after_update_) {

Powered by Google App Engine
This is Rietveld 408576698