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

Unified Diff: chrome/browser/extensions/extension_test_api.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_test_api.h
diff --git a/chrome/browser/extensions/extension_test_api.h b/chrome/browser/extensions/extension_test_api.h
index 77096e5c65b003ec993418a70299554c4765a377..6ab68575f3ea3a6d25a7e69d5fea87deb777b1cf 100644
--- a/chrome/browser/extensions/extension_test_api.h
+++ b/chrome/browser/extensions/extension_test_api.h
@@ -7,23 +7,19 @@
#include "chrome/browser/extensions/extension_function.h"
-// Function names.
-namespace extension_test_api_functions {
- extern const char kPassFunction[];
- extern const char kFailFunction[];
- extern const char kLogFunction[];
-}; // namespace extension_test_api_functions
-
class ExtensionTestPassFunction : public SyncExtensionFunction {
virtual bool RunImpl();
+ DECLARE_EXTENSION_FUNCTION_NAME("test.notifyPass")
};
class ExtensionTestFailFunction : public SyncExtensionFunction {
virtual bool RunImpl();
+ DECLARE_EXTENSION_FUNCTION_NAME("test.notifyFail")
};
class ExtensionTestLogFunction : public SyncExtensionFunction {
virtual bool RunImpl();
+ DECLARE_EXTENSION_FUNCTION_NAME("test.log")
};
#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TEST_API_H_

Powered by Google App Engine
This is Rietveld 408576698