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

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

Issue 83293004: kiosk: Show enrollment screen first if needed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, fix LOG(INFO) Created 7 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: 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 35b333d79ca48f8ebac7293e629bad9671f11ed3..4baf62cceb2b7a5811b211e642fb98cb70156520 100644
--- a/chrome/browser/ui/webui/chromeos/login/base_screen_handler.h
+++ b/chrome/browser/ui/webui/chromeos/login/base_screen_handler.h
@@ -94,6 +94,13 @@ class BaseScreenHandler : public content::WebUIMessageHandler {
// via virtual Initialize() method (see below).
void InitializeBase();
+ void set_async_assets_load_id(const std::string& async_assets_load_id) {
+ async_assets_load_id_ = async_assets_load_id;
+ }
+ const std::string& async_assets_load_id() const {
+ return async_assets_load_id_;
+ }
+
protected:
// All subclasses should implement this method to provide localized values.
virtual void DeclareLocalizedValues(LocalizedValuesBuilder* builder) = 0;
@@ -221,6 +228,11 @@ class BaseScreenHandler : public content::WebUIMessageHandler {
// objects.
std::string js_screen_path_prefix_;
+ // The string id used in the async asset load in JS. If it is set to a
+ // non empty value, the Initialize will be deferred until the underlying load
+ // is finished.
+ std::string async_assets_load_id_;
+
DISALLOW_COPY_AND_ASSIGN(BaseScreenHandler);
};
« no previous file with comments | « chrome/browser/resources/chromeos/login/resource_loader.js ('k') | chrome/browser/ui/webui/chromeos/login/core_oobe_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698