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

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

Issue 14063017: Move logic in UserImageScreen from UserImageScreenHandler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Whitespaces and braces Created 7 years, 8 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/chromeos/login/base_screen_handler.cc
diff --git a/chrome/browser/ui/webui/chromeos/login/base_screen_handler.cc b/chrome/browser/ui/webui/chromeos/login/base_screen_handler.cc
index fadfb0b551e3a12528ff67b9372e3e1281b770cf..badcb3669deb20e679b58cd7eec9df91c233c974 100644
--- a/chrome/browser/ui/webui/chromeos/login/base_screen_handler.cc
+++ b/chrome/browser/ui/webui/chromeos/login/base_screen_handler.cc
@@ -80,6 +80,24 @@ void BaseScreenHandler::CallJS(const std::string& method,
}
void BaseScreenHandler::CallJS(const std::string& method,
+ const std::string& arg1) {
+ base::StringValue value1(arg1);
+ CallJS(method, value1);
+}
+
+void BaseScreenHandler::CallJS(const std::string& method,
+ int arg1) {
+ base::FundamentalValue value1(arg1);
+ CallJS(method, value1);
+}
+
+void BaseScreenHandler::CallJS(const std::string& method,
+ bool arg1) {
+ base::FundamentalValue value1(arg1);
+ CallJS(method, value1);
+}
+
+void BaseScreenHandler::CallJS(const std::string& method,
const base::Value& arg1,
const base::Value& arg2) {
web_ui()->CallJavascriptFunction(method, arg1, arg2);

Powered by Google App Engine
This is Rietveld 408576698