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

Unified Diff: chrome/browser/ui/webui/options/chromeos/pointer_handler.cc

Issue 1995113002: Rename WebUI::CallJavascriptFunction to WebUI::CallJavascriptFunctionUnsafe (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/options/chromeos/pointer_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/pointer_handler.cc b/chrome/browser/ui/webui/options/chromeos/pointer_handler.cc
index 5d85ee406d00d49cecf0112168d2d0ce1793ddaf..d4c42c5fd3f89851f0758f8fd2927ccb09843f0a 100644
--- a/chrome/browser/ui/webui/options/chromeos/pointer_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/pointer_handler.cc
@@ -58,14 +58,16 @@ void PointerHandler::GetLocalizedValues(
void PointerHandler::TouchpadExists(bool exists) {
has_touchpad_ = exists;
base::FundamentalValue val(exists);
- web_ui()->CallJavascriptFunction("PointerOverlay.showTouchpadControls", val);
+ web_ui()->CallJavascriptFunctionUnsafe("PointerOverlay.showTouchpadControls",
+ val);
UpdateTitle();
}
void PointerHandler::MouseExists(bool exists) {
has_mouse_ = exists;
base::FundamentalValue val(exists);
- web_ui()->CallJavascriptFunction("PointerOverlay.showMouseControls", val);
+ web_ui()->CallJavascriptFunctionUnsafe("PointerOverlay.showMouseControls",
+ val);
UpdateTitle();
}
@@ -78,7 +80,7 @@ void PointerHandler::UpdateTitle() {
label = has_mouse_ ? "pointerOverlayTitleMouseOnly" : "";
}
base::StringValue val(label);
- web_ui()->CallJavascriptFunction("PointerOverlay.setTitle", val);
+ web_ui()->CallJavascriptFunctionUnsafe("PointerOverlay.setTitle", val);
}
} // namespace options

Powered by Google App Engine
This is Rietveld 408576698