diff options
author | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-01 22:58:10 +0000 |
---|---|---|
committer | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-01 22:58:10 +0000 |
commit | 9100ab1858c6ac0ab8334215f9c13ec65dca7be4 (patch) | |
tree | 894f45bd64c9763832a9e5e5af53f5a1fb083b84 /remoting/client | |
parent | 2ab0fcb9cf4ebeeb3baddb4778a6b2874be8dad1 (diff) | |
download | chromium_src-9100ab1858c6ac0ab8334215f9c13ec65dca7be4.zip chromium_src-9100ab1858c6ac0ab8334215f9c13ec65dca7be4.tar.gz chromium_src-9100ab1858c6ac0ab8334215f9c13ec65dca7be4.tar.bz2 |
Chromoting client plugin use DebugString() instead of AsString()
For logging fatal problems we should use DebugString() instead of
AsString() to interpret exception.
BUG=74575
TEST=No crashing for using chromoting
Review URL: http://codereview.chromium.org/6594085
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76454 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/client')
-rw-r--r-- | remoting/client/plugin/chromoting_scriptable_object.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/remoting/client/plugin/chromoting_scriptable_object.cc b/remoting/client/plugin/chromoting_scriptable_object.cc index 978055d..f452690 100644 --- a/remoting/client/plugin/chromoting_scriptable_object.cc +++ b/remoting/client/plugin/chromoting_scriptable_object.cc @@ -230,8 +230,8 @@ void ChromotingScriptableObject::SignalConnectionInfoChange() { cb.Call(Var(), 0, NULL, &exception); if (!exception.is_undefined()) { - LOG(WARNING) << "Exception when invoking connectionInfoUpdate JS callback" - << exception.AsString(); + LOG(WARNING) << "Exception when invoking connectionInfoUpdate JS callback: " + << exception.DebugString(); } } @@ -247,8 +247,8 @@ void ChromotingScriptableObject::SignalDebugInfoChange() { cb.Call(Var(), 0, NULL, &exception); if (!exception.is_undefined()) { - LOG(WARNING) << "Exception when invoking debugInfoUpdate JS callback" - << exception.AsString(); + LOG(WARNING) << "Exception when invoking debugInfoUpdate JS callback: " + << exception.DebugString(); } } @@ -264,8 +264,8 @@ void ChromotingScriptableObject::SignalLoginChallenge() { cb.Call(Var(), 0, NULL, &exception); if (!exception.is_undefined()) { - LOG(WARNING) << "Exception when invoking loginChallenge JS callback" - << exception.AsString(); + LOG(WARNING) << "Exception when invoking loginChallenge JS callback: " + << exception.DebugString(); } } @@ -282,7 +282,7 @@ Var ChromotingScriptableObject::DoConnect(const std::vector<Var>& args, *exception = Var("The username must be a string."); return Var(); } - config.username = args[0].AsString(); + config.username = args[0].DebugString(); if (!args[1].is_string()) { *exception = Var("The host_jid must be a string."); |