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

Unified Diff: chrome/browser/extensions/api/api_function.cc

Issue 11636050: Eliminate ApiResourceEventNotifier. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | « chrome/browser/extensions/api/api_function.h ('k') | chrome/browser/extensions/api/api_resource.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/api_function.cc
diff --git a/chrome/browser/extensions/api/api_function.cc b/chrome/browser/extensions/api/api_function.cc
index 0606d24e2d9e37c13a51fba0ba9edd036175c27b..53ff1070a7ebf26a4a540436fc9b1081905699a8 100644
--- a/chrome/browser/extensions/api/api_function.cc
+++ b/chrome/browser/extensions/api/api_function.cc
@@ -5,7 +5,6 @@
#include "chrome/browser/extensions/api/api_function.h"
#include "base/bind.h"
-#include "chrome/browser/extensions/api/api_resource_event_notifier.h"
#include "chrome/browser/extensions/extension_system.h"
#include "chrome/browser/profiles/profile.h"
@@ -19,22 +18,6 @@ ApiFunction::ApiFunction() {
ApiFunction::~ApiFunction() {
}
-int ApiFunction::ExtractSrcId(const DictionaryValue* options) {
- int src_id = -1;
- if (options) {
- if (options->HasKey(kSrcIdKey))
- EXTENSION_FUNCTION_VALIDATE(options->GetInteger(kSrcIdKey, &src_id));
- }
- return src_id;
-}
-
-ApiResourceEventNotifier* ApiFunction::CreateEventNotifier(int src_id) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- return new ApiResourceEventNotifier(
- extensions::ExtensionSystem::Get(profile())->event_router(), profile(),
- extension_id(), src_id, source_url());
-}
-
// AsyncApiFunction
AsyncApiFunction::AsyncApiFunction()
: work_thread_id_(BrowserThread::IO) {
« no previous file with comments | « chrome/browser/extensions/api/api_function.h ('k') | chrome/browser/extensions/api/api_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698