OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "remoting/host/plugin/host_script_object.h" | 5 #include "remoting/host/plugin/host_script_object.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/json/json_reader.h" | 8 #include "base/json/json_reader.h" |
9 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
(...skipping 1123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1134 } | 1134 } |
1135 | 1135 |
1136 void HostNPScriptObject::SetException(const std::string& exception_string) { | 1136 void HostNPScriptObject::SetException(const std::string& exception_string) { |
1137 DCHECK(plugin_task_runner_->BelongsToCurrentThread()); | 1137 DCHECK(plugin_task_runner_->BelongsToCurrentThread()); |
1138 | 1138 |
1139 g_npnetscape_funcs->setexception(parent_, exception_string.c_str()); | 1139 g_npnetscape_funcs->setexception(parent_, exception_string.c_str()); |
1140 HOST_LOG << exception_string; | 1140 HOST_LOG << exception_string; |
1141 } | 1141 } |
1142 | 1142 |
1143 } // namespace remoting | 1143 } // namespace remoting |
OLD | NEW |