summaryrefslogtreecommitdiffstats
path: root/chrome/browser/remoting
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-19 20:34:43 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-19 20:34:43 +0000
commit88942a2dab7da11dc89b4fe95151fdefa6cef036 (patch)
tree3047b9779e5b8b8a9a04c26e83ebc478e825f4b5 /chrome/browser/remoting
parent2acaa4de809c66b8b826e3bf93930e2b3bf4c65f (diff)
downloadchromium_src-88942a2dab7da11dc89b4fe95151fdefa6cef036.zip
chromium_src-88942a2dab7da11dc89b4fe95151fdefa6cef036.tar.gz
chromium_src-88942a2dab7da11dc89b4fe95151fdefa6cef036.tar.bz2
DOM UI: Change DOMMessageHandler callback arg type to ListValue.
The parameter describes a list of Values that act as parameters to the callback. It is always a ListValue. It should be typed as such. BUG=none TEST=compile; manual testing Review URL: http://codereview.chromium.org/3146019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56740 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/remoting')
-rw-r--r--chrome/browser/remoting/remoting_setup_message_handler.cc4
-rw-r--r--chrome/browser/remoting/remoting_setup_message_handler.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/remoting/remoting_setup_message_handler.cc b/chrome/browser/remoting/remoting_setup_message_handler.cc
index d9d8dea..35806df 100644
--- a/chrome/browser/remoting/remoting_setup_message_handler.cc
+++ b/chrome/browser/remoting/remoting_setup_message_handler.cc
@@ -20,8 +20,8 @@ void RemotingSetupMessageHandler::RegisterMessages() {
NewCallback(this, &RemotingSetupMessageHandler::HandleSubmitAuth));
}
-void RemotingSetupMessageHandler::HandleSubmitAuth(const Value* value) {
- std::string json(dom_ui_util::GetJsonResponseFromFirstArgumentInList(value));
+void RemotingSetupMessageHandler::HandleSubmitAuth(const ListValue* args) {
+ std::string json(dom_ui_util::GetJsonResponseFromFirstArgumentInList(args));
std::string username, password, captcha;
if (json.empty())
return;
diff --git a/chrome/browser/remoting/remoting_setup_message_handler.h b/chrome/browser/remoting/remoting_setup_message_handler.h
index b4dcfcb..a01001b 100644
--- a/chrome/browser/remoting/remoting_setup_message_handler.h
+++ b/chrome/browser/remoting/remoting_setup_message_handler.h
@@ -22,7 +22,7 @@ class RemotingSetupMessageHandler : public DOMMessageHandler {
virtual void RegisterMessages();
// Callbacks from the page.
- void HandleSubmitAuth(const Value* value);
+ void HandleSubmitAuth(const ListValue* args);
// These functions control which part of the HTML is visible.
// TODO(hclam): I really don't feel right about exposing these as public