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

Side by Side Diff: chrome/common/extensions/extension_error_utils.h

Issue 8890086: Issue 71980: Extensions code should use UTF-16 for user-visible Unicode strings (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years 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 | Annotate | Revision Log
OLDNEW
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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/string16.h"
12
11 class ExtensionErrorUtils { 13 class ExtensionErrorUtils {
12 public: 14 public:
13 // Creates an error messages from a pattern. 15 // Creates an error messages from a pattern.
14 static std::string FormatErrorMessage(const std::string& format, 16 static std::string FormatErrorMessage(const std::string& format,
15 const std::string& s1); 17 const std::string& s1);
16 18
17 static std::string FormatErrorMessage(const std::string& format, 19 static std::string FormatErrorMessage(const std::string& format,
18 const std::string& s1, 20 const std::string& s1,
19 const std::string& s2); 21 const std::string& s2);
20 22
21 static std::string FormatErrorMessage(const std::string& format, 23 static std::string FormatErrorMessage(const std::string& format,
22 const std::string& s1, 24 const std::string& s1,
23 const std::string& s2, 25 const std::string& s2,
24 const std::string& s3); 26 const std::string& s3);
27
28 static string16 FormatErrorMessageUTF16(const std::string& format,
29 const std::string& s1);
30
31 static string16 FormatErrorMessageUTF16(const std::string& format,
32 const std::string& s1,
33 const std::string& s2);
34
35 static string16 FormatErrorMessageUTF16(const std::string& format,
36 const std::string& s1,
37 const std::string& s2,
38 const std::string& s3);
25 }; 39 };
26 40
27 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_ERROR_UTILS_H_ 41 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_ERROR_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension.cc ('k') | chrome/common/extensions/extension_error_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698