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

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

Issue 9701006: Don't build the task manager into Android builds. (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 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 browser_event_router_.reset(new ExtensionBrowserEventRouter(profile_)); 528 browser_event_router_.reset(new ExtensionBrowserEventRouter(profile_));
529 browser_event_router_->Init(); 529 browser_event_router_->Init();
530 preference_event_router_.reset(new ExtensionPreferenceEventRouter(profile_)); 530 preference_event_router_.reset(new ExtensionPreferenceEventRouter(profile_));
531 bookmark_event_router_.reset(new BookmarkExtensionEventRouter( 531 bookmark_event_router_.reset(new BookmarkExtensionEventRouter(
532 profile_->GetBookmarkModel())); 532 profile_->GetBookmarkModel()));
533 bookmark_event_router_->Init(); 533 bookmark_event_router_->Init();
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 #if defined(ENABLE_TASK_MANAGER)
538 ExtensionProcessesEventRouter::GetInstance()->ObserveProfile(profile_); 539 ExtensionProcessesEventRouter::GetInstance()->ObserveProfile(profile_);
540 #endif
539 web_navigation_event_router_.reset( 541 web_navigation_event_router_.reset(
540 new ExtensionWebNavigationEventRouter(profile_)); 542 new ExtensionWebNavigationEventRouter(profile_));
541 web_navigation_event_router_->Init(); 543 web_navigation_event_router_->Init();
542 544
543 #if defined(OS_CHROMEOS) 545 #if defined(OS_CHROMEOS)
544 file_browser_event_router_.reset( 546 file_browser_event_router_.reset(
545 new ExtensionFileBrowserEventRouter(profile_)); 547 new ExtensionFileBrowserEventRouter(profile_));
546 file_browser_event_router_->ObserveFileSystemEvents(); 548 file_browser_event_router_->ObserveFileSystemEvents();
547 549
548 input_method_event_router_.reset( 550 input_method_event_router_.reset(
(...skipping 2119 matching lines...) Expand 10 before | Expand all | Expand 10 after
2668 return api_resource_controller_; 2670 return api_resource_controller_;
2669 } 2671 }
2670 2672
2671 extensions::RulesRegistryService* ExtensionService::GetRulesRegistryService() { 2673 extensions::RulesRegistryService* ExtensionService::GetRulesRegistryService() {
2672 if (!rules_registry_service_.get()) { 2674 if (!rules_registry_service_.get()) {
2673 rules_registry_service_.reset( 2675 rules_registry_service_.reset(
2674 new extensions::RulesRegistryService(profile_)); 2676 new extensions::RulesRegistryService(profile_));
2675 } 2677 }
2676 return rules_registry_service_.get(); 2678 return rules_registry_service_.get();
2677 } 2679 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698