| Index: chrome/browser/extensions/api/automation_internal/automation_util.cc
|
| diff --git a/chrome/browser/extensions/api/automation_internal/automation_util.cc b/chrome/browser/extensions/api/automation_internal/automation_util.cc
|
| index 0428b42ed52b0666e2a23a7cdaadc62953383d08..6510af02de04f313a0598804b262f61cea39f87c 100644
|
| --- a/chrome/browser/extensions/api/automation_internal/automation_util.cc
|
| +++ b/chrome/browser/extensions/api/automation_internal/automation_util.cc
|
| @@ -10,7 +10,6 @@
|
| #include "base/values.h"
|
| #include "chrome/common/extensions/api/automation_internal.h"
|
| #include "extensions/browser/event_router.h"
|
| -#include "extensions/browser/extension_system.h"
|
| #include "ui/accessibility/ax_enums.h"
|
| #include "ui/accessibility/ax_node_data.h"
|
|
|
| @@ -113,10 +112,10 @@ void PopulateNodeData(const ui::AXNodeData& node_data,
|
| void DispatchEventInternal(content::BrowserContext* context,
|
| const std::string& event_name,
|
| scoped_ptr<base::ListValue> args) {
|
| - if (context && ExtensionSystem::Get(context)->event_router()) {
|
| + if (context && EventRouter::Get(context)) {
|
| scoped_ptr<Event> event(new Event(event_name, args.Pass()));
|
| event->restrict_to_browser_context = context;
|
| - ExtensionSystem::Get(context)->event_router()->BroadcastEvent(event.Pass());
|
| + EventRouter::Get(context)->BroadcastEvent(event.Pass());
|
| }
|
| }
|
|
|
|
|