| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "extensions/renderer/api_invocation_errors.h" | 5 #include "extensions/renderer/bindings/api_invocation_errors.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
| 11 | 11 |
| 12 namespace extensions { | 12 namespace extensions { |
| 13 namespace api_errors { | 13 namespace api_errors { |
| 14 | 14 |
| 15 const char kTypeString[] = "string"; | 15 const char kTypeString[] = "string"; |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 std::string InvocationError(const std::string& method_name, | 114 std::string InvocationError(const std::string& method_name, |
| 115 const std::string& expected_signature, | 115 const std::string& expected_signature, |
| 116 const std::string& error) { | 116 const std::string& error) { |
| 117 return base::StringPrintf("Error in invocation of %s(%s): %s", | 117 return base::StringPrintf("Error in invocation of %s(%s): %s", |
| 118 method_name.c_str(), expected_signature.c_str(), | 118 method_name.c_str(), expected_signature.c_str(), |
| 119 error.c_str()); | 119 error.c_str()); |
| 120 } | 120 } |
| 121 | 121 |
| 122 } // namespace api_errors | 122 } // namespace api_errors |
| 123 } // namespace extensions | 123 } // namespace extensions |
| OLD | NEW |