| Index: extensions/browser/api/test/test_api.h
|
| diff --git a/extensions/browser/api/test/test_api.h b/extensions/browser/api/test/test_api.h
|
| index 44d6e3dc1b497ad59f90a02acd32e690c0197680..f86fea842730ae043e4d4a1f084500449441ce75 100644
|
| --- a/extensions/browser/api/test/test_api.h
|
| +++ b/extensions/browser/api/test/test_api.h
|
| @@ -63,8 +63,9 @@ class TestLogFunction : public TestExtensionFunction {
|
| bool RunSafe() override;
|
| };
|
|
|
| -class TestSendMessageFunction : public AsyncExtensionFunction {
|
| +class TestSendMessageFunction : public UIThreadExtensionFunction {
|
| public:
|
| + TestSendMessageFunction();
|
| DECLARE_EXTENSION_FUNCTION("test.sendMessage", UNKNOWN)
|
|
|
| // Sends a reply back to the calling extension. Many extensions don't need
|
| @@ -77,8 +78,13 @@ class TestSendMessageFunction : public AsyncExtensionFunction {
|
| protected:
|
| ~TestSendMessageFunction() override;
|
|
|
| - // ExtensionFunction:
|
| - bool RunAsync() override;
|
| + // UIExtensionFunction:
|
| + ResponseAction Run() override;
|
| +
|
| + // Whether or not the function is currently waiting for a reply.
|
| + bool waiting_;
|
| +
|
| + ResponseValue response_;
|
| };
|
|
|
| class TestGetConfigFunction : public TestExtensionFunction {
|
|
|