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

Unified Diff: extensions/common/extension_error_utils.h

Issue 11312228: Move extension_error_utils.* and url_pattern_set.* into (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move into extensions namespace Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/DEPS ('k') | extensions/common/extension_error_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/extension_error_utils.h
diff --git a/chrome/common/extensions/extension_error_utils.h b/extensions/common/extension_error_utils.h
similarity index 86%
rename from chrome/common/extensions/extension_error_utils.h
rename to extensions/common/extension_error_utils.h
index 4745ca088f176245cd285b4395c0ff806e25e572..41cdec24486aa020fb751232082515109f415f16 100644
--- a/chrome/common/extensions/extension_error_utils.h
+++ b/extensions/common/extension_error_utils.h
@@ -2,14 +2,16 @@
// 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_
+#ifndef EXTENSIONS_COMMON_EXTENSION_ERROR_UTILS_H_
Yoyo Zhou 2012/11/15 23:14:28 LGTM, but this could be renamed to simply error_ut
+#define EXTENSIONS_COMMON_EXTENSION_ERROR_UTILS_H_
#include <string>
#include "base/string16.h"
-class ExtensionErrorUtils {
+namespace extensions {
+
+class ErrorUtils {
public:
// Creates an error messages from a pattern.
static std::string FormatErrorMessage(const std::string& format,
@@ -37,4 +39,6 @@ class ExtensionErrorUtils {
const std::string& s3);
};
-#endif // CHROME_COMMON_EXTENSIONS_EXTENSION_ERROR_UTILS_H_
+} // namespace extensions
+
+#endif // EXTENSIONS_COMMON_EXTENSION_ERROR_UTILS_H_
« no previous file with comments | « extensions/DEPS ('k') | extensions/common/extension_error_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698