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

Side by Side Diff: chrome/browser/extensions/extension_service.cc

Issue 9720020: [COPY] - Implemented API for tracking ongoing file transfers from file manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 file_browser_event_router_.reset( 544 FileBrowserEventRouterFactory::GetForProfile(
545 new ExtensionFileBrowserEventRouter(profile_)); 545 profile_)->ObserveFileSystemEvents();
546 file_browser_event_router_->ObserveFileSystemEvents();
547 546
548 input_method_event_router_.reset( 547 input_method_event_router_.reset(
549 new chromeos::ExtensionInputMethodEventRouter); 548 new chromeos::ExtensionInputMethodEventRouter);
550 549
551 ExtensionMediaPlayerEventRouter::GetInstance()->Init(profile_); 550 ExtensionMediaPlayerEventRouter::GetInstance()->Init(profile_);
552 ExtensionInputImeEventRouter::GetInstance()->Init(); 551 ExtensionInputImeEventRouter::GetInstance()->Init();
553 #endif 552 #endif
554 553
555 #if defined(OS_CHROMEOS) && defined(USE_VIRTUAL_KEYBOARD) 554 #if defined(OS_CHROMEOS) && defined(USE_VIRTUAL_KEYBOARD)
556 ExtensionInputUiEventRouter::GetInstance()->Init(); 555 ExtensionInputUiEventRouter::GetInstance()->Init();
(...skipping 2111 matching lines...) Expand 10 before | Expand all | Expand 10 after
2668 return api_resource_controller_; 2667 return api_resource_controller_;
2669 } 2668 }
2670 2669
2671 extensions::RulesRegistryService* ExtensionService::GetRulesRegistryService() { 2670 extensions::RulesRegistryService* ExtensionService::GetRulesRegistryService() {
2672 if (!rules_registry_service_.get()) { 2671 if (!rules_registry_service_.get()) {
2673 rules_registry_service_.reset( 2672 rules_registry_service_.reset(
2674 new extensions::RulesRegistryService(profile_)); 2673 new extensions::RulesRegistryService(profile_));
2675 } 2674 }
2676 return rules_registry_service_.get(); 2675 return rules_registry_service_.get();
2677 } 2676 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_service.h ('k') | chrome/browser/resources/file_manager/js/directory_model.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698