diff options
Diffstat (limited to 'chrome/browser/chrome_plugin_host.h')
-rw-r--r-- | chrome/browser/chrome_plugin_host.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/browser/chrome_plugin_host.h b/chrome/browser/chrome_plugin_host.h index 13a7736..af8ee15 100644 --- a/chrome/browser/chrome_plugin_host.h +++ b/chrome/browser/chrome_plugin_host.h @@ -23,13 +23,11 @@ class CPCommandInterface { // Called when the command has been invoked. The default action is deletion, // but some callers may want to use output or check the return value before // deleting. - virtual void OnCommandInvoked(CPError retval) { - delete this; - } + virtual void OnCommandInvoked(CPError retval); // Some commands have an asynchronous response. This is called some time // after OnCommandInvoked. - virtual void OnCommandResponse(CPError retval) { } + virtual void OnCommandResponse(CPError retval); }; // Called when a builtin or plugin-registered UI command is invoked by a user |