| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/extensions/extension_service.h" | 5 #include "chrome/browser/extensions/extension_service.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 cookies_event_router_.reset(new ExtensionCookiesEventRouter(profile_)); | 534 cookies_event_router_.reset(new ExtensionCookiesEventRouter(profile_)); |
| 535 cookies_event_router_->Init(); | 535 cookies_event_router_->Init(); |
| 536 management_event_router_.reset(new ExtensionManagementEventRouter(profile_)); | 536 management_event_router_.reset(new ExtensionManagementEventRouter(profile_)); |
| 537 management_event_router_->Init(); | 537 management_event_router_->Init(); |
| 538 ExtensionProcessesEventRouter::GetInstance()->ObserveProfile(profile_); | 538 ExtensionProcessesEventRouter::GetInstance()->ObserveProfile(profile_); |
| 539 web_navigation_event_router_.reset( | 539 web_navigation_event_router_.reset( |
| 540 new ExtensionWebNavigationEventRouter(profile_)); | 540 new ExtensionWebNavigationEventRouter(profile_)); |
| 541 web_navigation_event_router_->Init(); | 541 web_navigation_event_router_->Init(); |
| 542 | 542 |
| 543 #if defined(OS_CHROMEOS) | 543 #if defined(OS_CHROMEOS) |
| 544 FileBrowserEventRouterFactory::GetForProfile( | 544 file_browser_event_router_.reset( |
| 545 profile_)->ObserveFileSystemEvents(); | 545 new ExtensionFileBrowserEventRouter(profile_)); |
| 546 file_browser_event_router_->ObserveFileSystemEvents(); |
| 546 | 547 |
| 547 input_method_event_router_.reset( | 548 input_method_event_router_.reset( |
| 548 new chromeos::ExtensionInputMethodEventRouter); | 549 new chromeos::ExtensionInputMethodEventRouter); |
| 549 | 550 |
| 550 ExtensionMediaPlayerEventRouter::GetInstance()->Init(profile_); | 551 ExtensionMediaPlayerEventRouter::GetInstance()->Init(profile_); |
| 551 ExtensionInputImeEventRouter::GetInstance()->Init(); | 552 ExtensionInputImeEventRouter::GetInstance()->Init(); |
| 552 #endif | 553 #endif |
| 553 | 554 |
| 554 #if defined(OS_CHROMEOS) && defined(USE_VIRTUAL_KEYBOARD) | 555 #if defined(OS_CHROMEOS) && defined(USE_VIRTUAL_KEYBOARD) |
| 555 ExtensionInputUiEventRouter::GetInstance()->Init(); | 556 ExtensionInputUiEventRouter::GetInstance()->Init(); |
| (...skipping 2111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2667 return api_resource_controller_; | 2668 return api_resource_controller_; |
| 2668 } | 2669 } |
| 2669 | 2670 |
| 2670 extensions::RulesRegistryService* ExtensionService::GetRulesRegistryService() { | 2671 extensions::RulesRegistryService* ExtensionService::GetRulesRegistryService() { |
| 2671 if (!rules_registry_service_.get()) { | 2672 if (!rules_registry_service_.get()) { |
| 2672 rules_registry_service_.reset( | 2673 rules_registry_service_.reset( |
| 2673 new extensions::RulesRegistryService(profile_)); | 2674 new extensions::RulesRegistryService(profile_)); |
| 2674 } | 2675 } |
| 2675 return rules_registry_service_.get(); | 2676 return rules_registry_service_.get(); |
| 2676 } | 2677 } |
| OLD | NEW |