| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_ERROR_UTILS_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_ERROR_UTILS_H_ |
| 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_ERROR_UTILS_H_ | 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_ERROR_UTILS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 class ExtensionErrorUtils { | 10 class ExtensionErrorUtils { |
| 11 public: | 11 public: |
| 12 // Creates an error messages from a pattern. Places first instance if "*" | 12 // Creates an error messages from a pattern. |
| 13 // with |s1|. | |
| 14 static std::string FormatErrorMessage(const std::string& format, | 13 static std::string FormatErrorMessage(const std::string& format, |
| 15 const std::string s1); | 14 const std::string& s1); |
| 16 | 15 |
| 17 // Creates an error messages from a pattern. Places first instance if "*" | |
| 18 // with |s1| and second instance of "*" with |s2|. | |
| 19 static std::string FormatErrorMessage(const std::string& format, | 16 static std::string FormatErrorMessage(const std::string& format, |
| 20 const std::string s1, | 17 const std::string& s1, |
| 21 const std::string s2); | 18 const std::string& s2); |
| 19 |
| 20 static std::string FormatErrorMessage(const std::string& format, |
| 21 const std::string& s1, |
| 22 const std::string& s2, |
| 23 const std::string& s3); |
| 22 }; | 24 }; |
| 23 | 25 |
| 24 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_ERROR_UTILS_H_ | 26 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_ERROR_UTILS_H_ |
| OLD | NEW |