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

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

Issue 8520035: Revert 110264 - Fix for management API related to escalated permissions disabled extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 | « no previous file | chrome/browser/extensions/extension_function.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_function.h
===================================================================
--- chrome/browser/extensions/extension_function.h (revision 110267)
+++ chrome/browser/extensions/extension_function.h (working copy)
@@ -142,7 +142,7 @@
// Sends the result back to the extension.
virtual void SendResponse(bool success) = 0;
- // Common implementation for SendResponse.
+ // Common implementation for SenderResponse.
void SendResponseImpl(base::ProcessHandle process,
IPC::Message::Sender* ipc_sender,
int routing_id,
@@ -340,24 +340,10 @@
// the browser's UI thread*.
class AsyncExtensionFunction : public UIThreadExtensionFunction {
public:
- // A delegate for use in testing, to intercept the call to SendResponse.
- class DelegateForTests {
- public:
- virtual void OnSendResponse(AsyncExtensionFunction* function,
- bool success) = 0;
- };
-
AsyncExtensionFunction();
- virtual void SendResponse(bool success) OVERRIDE;
- void set_test_delegate(DelegateForTests* delegate) {
- delegate_ = delegate;
- }
-
protected:
virtual ~AsyncExtensionFunction();
-
- DelegateForTests* delegate_;
};
// A SyncExtensionFunction is an ExtensionFunction that runs synchronously
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_function.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698