| Index: extensions/common/error_utils.h
|
| diff --git a/extensions/common/error_utils.h b/extensions/common/error_utils.h
|
| index fedbd2887ba510a41caa393149c623fd43f52a09..5f86ee0bd3ae329fc0cd4d71bd7bb6b6ddbde277 100644
|
| --- a/extensions/common/error_utils.h
|
| +++ b/extensions/common/error_utils.h
|
| @@ -8,35 +8,36 @@
|
| #include <string>
|
|
|
| #include "base/strings/string16.h"
|
| +#include "base/strings/string_piece.h"
|
|
|
| namespace extensions {
|
|
|
| class ErrorUtils {
|
| public:
|
| // Creates an error messages from a pattern.
|
| - static std::string FormatErrorMessage(const std::string& format,
|
| - const std::string& s1);
|
| + static std::string FormatErrorMessage(base::StringPiece format,
|
| + base::StringPiece s1);
|
|
|
| - static std::string FormatErrorMessage(const std::string& format,
|
| - const std::string& s1,
|
| - const std::string& s2);
|
| + static std::string FormatErrorMessage(base::StringPiece format,
|
| + base::StringPiece s1,
|
| + base::StringPiece s2);
|
|
|
| - static std::string FormatErrorMessage(const std::string& format,
|
| - const std::string& s1,
|
| - const std::string& s2,
|
| - const std::string& s3);
|
| + static std::string FormatErrorMessage(base::StringPiece format,
|
| + base::StringPiece s1,
|
| + base::StringPiece s2,
|
| + base::StringPiece s3);
|
|
|
| - static base::string16 FormatErrorMessageUTF16(const std::string& format,
|
| - const std::string& s1);
|
| + static base::string16 FormatErrorMessageUTF16(base::StringPiece format,
|
| + base::StringPiece s1);
|
|
|
| - static base::string16 FormatErrorMessageUTF16(const std::string& format,
|
| - const std::string& s1,
|
| - const std::string& s2);
|
| + static base::string16 FormatErrorMessageUTF16(base::StringPiece format,
|
| + base::StringPiece s1,
|
| + base::StringPiece s2);
|
|
|
| - static base::string16 FormatErrorMessageUTF16(const std::string& format,
|
| - const std::string& s1,
|
| - const std::string& s2,
|
| - const std::string& s3);
|
| + static base::string16 FormatErrorMessageUTF16(base::StringPiece format,
|
| + base::StringPiece s1,
|
| + base::StringPiece s2,
|
| + base::StringPiece s3);
|
| };
|
|
|
| } // namespace extensions
|
|
|