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

Unified Diff: chrome/browser/extensions/extension_function.h

Issue 274059: Small cleanup to extension function registration to avoid scattered definitions. (Closed)
Patch Set: Created 11 years, 2 months 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
Index: chrome/browser/extensions/extension_function.h
diff --git a/chrome/browser/extensions/extension_function.h b/chrome/browser/extensions/extension_function.h
index 238f8e4e9aa1bc46825b4977faaea771a47ea437..6090f8a1307c33fa361a0aa459b2a8813d9f2a4a 100644
--- a/chrome/browser/extensions/extension_function.h
+++ b/chrome/browser/extensions/extension_function.h
@@ -22,6 +22,9 @@ class Profile;
} \
} while (0)
+#define DECLARE_EXTENSION_FUNCTION_NAME(name) \
+ public: static const char* function_name() { return name; }
+
// Abstract base class for extension functions the ExtensionFunctionDispatcher
// knows how to dispatch to.
//

Powered by Google App Engine
This is Rietveld 408576698