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

Unified Diff: chrome/browser/ui/webui/settings/about_handler.cc

Issue 1989673002: MD Settings: About page, add an explicit 'aboutPageReady' signal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
Index: chrome/browser/ui/webui/settings/about_handler.cc
diff --git a/chrome/browser/ui/webui/settings/about_handler.cc b/chrome/browser/ui/webui/settings/about_handler.cc
index 2324cb5fcab7d1515d98aa83c02d54769fab47e6..23410f02fbf682dc762912cc0db67ac9ab8ff4ea 100644
--- a/chrome/browser/ui/webui/settings/about_handler.cc
+++ b/chrome/browser/ui/webui/settings/about_handler.cc
@@ -311,6 +311,9 @@ AboutHandler* AboutHandler::Create(content::WebUIDataSource* html_source,
void AboutHandler::RegisterMessages() {
web_ui()->RegisterMessageCallback(
+ "aboutPageReady",
+ base::Bind(&AboutHandler::HandlePageReady, base::Unretained(this)));
+ web_ui()->RegisterMessageCallback(
"refreshUpdateStatus",
base::Bind(&AboutHandler::HandleRefreshUpdateStatus,
base::Unretained(this)));
@@ -424,8 +427,11 @@ void AboutHandler::OnDeviceAutoUpdatePolicyChanged(
}
}
-void AboutHandler::HandleRefreshUpdateStatus(const base::ListValue* args) {
+void AboutHandler::HandlePageReady(const base::ListValue* args) {
AllowJavascript();
+}
+
+void AboutHandler::HandleRefreshUpdateStatus(const base::ListValue* args) {
RefreshUpdateStatus();
}
« no previous file with comments | « chrome/browser/ui/webui/settings/about_handler.h ('k') | chrome/test/data/webui/settings/about_page_tests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698