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

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

Issue 2779743002: 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_screen_handler.h
diff --git a/chrome/browser/ui/webui/chromeos/login/base_screen_handler.h b/chrome/browser/ui/webui/chromeos/login/base_screen_handler.h
index 1fae31a4972d59e3a75e8a7f498ce2d661f266f7..4b6e5d5ab955d1f64e24423d979ee6462356d0ec 100644
--- a/chrome/browser/ui/webui/chromeos/login/base_screen_handler.h
+++ b/chrome/browser/ui/webui/chromeos/login/base_screen_handler.h
@@ -220,6 +220,12 @@ class BaseScreenHandler : 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