| Index: chrome/browser/ui/webui/chromeos/login/base_webui_handler.h
|
| diff --git a/chrome/browser/ui/webui/chromeos/login/base_webui_handler.h b/chrome/browser/ui/webui/chromeos/login/base_webui_handler.h
|
| index aae5b269e1ac9c7a598b71e195e7301d163eef9b..9d8c121ff71232b9de124f037a1318f8bcf74d5a 100644
|
| --- a/chrome/browser/ui/webui/chromeos/login/base_webui_handler.h
|
| +++ b/chrome/browser/ui/webui/chromeos/login/base_webui_handler.h
|
| @@ -40,7 +40,7 @@ class JSCallsContainer {
|
| ~JSCallsContainer();
|
|
|
| // Used to decide whether the JS call should be deferred.
|
| - bool is_initialized() { return is_initialized_; }
|
| + bool is_initialized() const { return is_initialized_; }
|
|
|
| // Used to mark the instance as intialized.
|
| void mark_initialized() { is_initialized_ = true; }
|
| @@ -225,6 +225,12 @@ class BaseWebUIHandler : public content::WebUIMessageHandler,
|
|
|
| void SetBaseScreen(BaseScreen* base_screen);
|
|
|
| + // Returns true if JS side has sent a screenStateInitialize event.
|
| + // TODO(jdufault): Remove after resolving crbug.com/699798
|
| + bool is_js_initialized_and_ready() const {
|
| + return js_calls_container_->is_initialized();
|
| + }
|
| +
|
| private:
|
| // Calls Javascript method.
|
| //
|
|
|