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

Unified Diff: chrome/browser/extensions/api/bluetooth/bluetooth_api.cc

Issue 11232066: Remove GetExtensionEventRouter from Profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rerebase Created 8 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/api/bluetooth/bluetooth_api.cc
diff --git a/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc b/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc
index df04d2b2f4cf5ffc5cfe01ab9ae5041d425a1772..d2f041fcf4586743bf978de6ec9b63ef7366479f 100644
--- a/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc
+++ b/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc
@@ -16,6 +16,7 @@
#include "chrome/browser/extensions/event_names.h"
#include "chrome/browser/extensions/event_router.h"
#include "chrome/browser/extensions/extension_service.h"
+#include "chrome/browser/extensions/extension_system.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/extensions/api/bluetooth.h"
#include "content/public/browser/browser_thread.h"
@@ -160,11 +161,12 @@ void BluetoothGetDevicesFunction::FinishDeviceSearch() {
info->SetInteger("expectedEventCount", device_events_sent_);
args->Append(info.release());
- profile()->GetExtensionEventRouter()->DispatchEventToRenderers(
- extensions::event_names::kBluetoothOnDeviceSearchFinished,
- args.Pass(),
- NULL,
- GURL());
+ extensions::ExtensionSystem::Get(profile())->event_router()->
+ DispatchEventToRenderers(
+ extensions::event_names::kBluetoothOnDeviceSearchFinished,
+ args.Pass(),
+ NULL,
+ GURL());
SendResponse(true);
}
« no previous file with comments | « chrome/browser/extensions/api/app_runtime/app_runtime_api.cc ('k') | chrome/browser/extensions/api/cookies/cookies_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698