summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/extension_error_utils.h
diff options
context:
space:
mode:
authormpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-26 19:00:58 +0000
committermpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-26 19:00:58 +0000
commit5b1a0e2e761921587a6a5844fa138c0f2055d739 (patch)
treef82c70dbfe9762178875050a42a955fbde49d240 /chrome/common/extensions/extension_error_utils.h
parentf53e6e4e1ac624b1d9769e91d7e328ac100673ac (diff)
downloadchromium_src-5b1a0e2e761921587a6a5844fa138c0f2055d739.zip
chromium_src-5b1a0e2e761921587a6a5844fa138c0f2055d739.tar.gz
chromium_src-5b1a0e2e761921587a6a5844fa138c0f2055d739.tar.bz2
Remove unused code from ExtensionsService.
Move extension.* from browser to common, so it can be included by the utility process. Review URL: http://codereview.chromium.org/115716 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16880 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/extension_error_utils.h')
-rwxr-xr-xchrome/common/extensions/extension_error_utils.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/chrome/common/extensions/extension_error_utils.h b/chrome/common/extensions/extension_error_utils.h
new file mode 100755
index 0000000..f9f1e7c
--- /dev/null
+++ b/chrome/common/extensions/extension_error_utils.h
@@ -0,0 +1,24 @@
+// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_ERROR_UTILS_H_
+#define CHROME_COMMON_EXTENSIONS_EXTENSION_ERROR_UTILS_H_
+
+#include <string>
+
+class ExtensionErrorUtils {
+public:
+ // Creates an error messages from a pattern. Places first instance if "*"
+ // with |s1|.
+ static std::string FormatErrorMessage(const std::string& format,
+ const std::string s1);
+
+ // Creates an error messages from a pattern. Places first instance if "*"
+ // with |s1| and second instance of "*" with |s2|.
+ static std::string FormatErrorMessage(const std::string& format,
+ const std::string s1,
+ const std::string s2);
+};
+
+#endif // CHROME_COMMON_EXTENSIONS_EXTENSION_ERROR_UTILS_H_