| 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 233bc28eb574f71c712dc82a767516d22e8e7e4b..d1fb1d0445cd258a59b2cf8ac682b12ccde662c6 100644
|
| --- a/chrome/browser/extensions/api/automation_internal/automation_util.cc
|
| +++ b/chrome/browser/extensions/api/automation_internal/automation_util.cc
|
| @@ -12,7 +12,6 @@
|
| #include "chrome/common/chrome_switches.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"
|
|
|
| @@ -115,14 +114,14 @@ 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());
|
| }
|
| }
|
|
|
| -} //namespace
|
| +} // namespace
|
|
|
| namespace automation_util {
|
|
|
|
|