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

Side by Side Diff: extensions/renderer/bindings/api_invocation_errors.cc

Issue 2947463002: [Extensions Bindings] Add a bindings/ subdirectory under renderer (Closed)
Patch Set: . Created 3 years, 5 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « extensions/renderer/bindings/api_invocation_errors.h ('k') | extensions/renderer/bindings/api_invocation_errors_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698