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

Unified Diff: chrome/browser/ui/webui/chromeos/login/base_webui_handler.h

Issue 2766393003: cros: Defer lockscreen updateUserImage and loadUser calls. (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
//
« no previous file with comments | « no previous file | chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698