Chromium Code Reviews| Index: chrome/browser/ui/webui/chromeos/login/host_pairing_screen_handler.h |
| diff --git a/chrome/browser/ui/webui/chromeos/login/host_pairing_screen_handler.h b/chrome/browser/ui/webui/chromeos/login/host_pairing_screen_handler.h |
| index 7af5a28ea02f3ca7d2a55b0ef971ac7d47fa9fc8..1241ce028741dd58c89c4696a6ad869429d9195f 100644 |
| --- a/chrome/browser/ui/webui/chromeos/login/host_pairing_screen_handler.h |
| +++ b/chrome/browser/ui/webui/chromeos/login/host_pairing_screen_handler.h |
| @@ -7,6 +7,7 @@ |
| #include "base/macros.h" |
| #include "chrome/browser/chromeos/login/screens/host_pairing_screen_actor.h" |
| +#include "chrome/browser/chromeos/login/screens/screen_context.h" |
| #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" |
| namespace chromeos { |
| @@ -18,6 +19,8 @@ class HostPairingScreenHandler : public HostPairingScreenActor, |
| virtual ~HostPairingScreenHandler(); |
| private: |
| + void HandleContextReady(); |
| + |
| // Overridden from BaseScreenHandler: |
| virtual void Initialize() OVERRIDE; |
| virtual void DeclareLocalizedValues(LocalizedValuesBuilder* builder) OVERRIDE; |
| @@ -33,6 +36,10 @@ class HostPairingScreenHandler : public HostPairingScreenActor, |
| HostPairingScreenActor::Delegate* delegate_; |
| bool show_on_init_; |
| + bool context_ready_; |
|
ygorshenin1
2014/09/18 16:51:48
This name doesn't reflect the fact that it's JS pa
dzhioev (left Google)
2014/09/19 15:54:04
Done.
|
| + |
| + // Caches context changes while JS part is not ready to receive messages. |
| + ScreenContext context_cache_; |
| DISALLOW_COPY_AND_ASSIGN(HostPairingScreenHandler); |
| }; |