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

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

Issue 8002001: Initialize ExtensionAccessibilityEventRouter earlier. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 3 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
« no previous file with comments | « chrome/browser/extensions/extension_accessibility_api.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 686 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 Source<Profile>(profile_)); 697 Source<Profile>(profile_));
698 } 698 }
699 699
700 void ExtensionService::InitEventRouters() { 700 void ExtensionService::InitEventRouters() {
701 if (event_routers_initialized_) 701 if (event_routers_initialized_)
702 return; 702 return;
703 703
704 downloads_event_router_.reset(new ExtensionDownloadsEventRouter(profile_)); 704 downloads_event_router_.reset(new ExtensionDownloadsEventRouter(profile_));
705 history_event_router_.reset(new ExtensionHistoryEventRouter()); 705 history_event_router_.reset(new ExtensionHistoryEventRouter());
706 history_event_router_->ObserveProfile(profile_); 706 history_event_router_->ObserveProfile(profile_);
707 ExtensionAccessibilityEventRouter::GetInstance()->ObserveProfile(profile_);
708 browser_event_router_.reset(new ExtensionBrowserEventRouter(profile_)); 707 browser_event_router_.reset(new ExtensionBrowserEventRouter(profile_));
709 browser_event_router_->Init(); 708 browser_event_router_->Init();
710 preference_event_router_.reset(new ExtensionPreferenceEventRouter(profile_)); 709 preference_event_router_.reset(new ExtensionPreferenceEventRouter(profile_));
711 bookmark_event_router_.reset(new ExtensionBookmarkEventRouter( 710 bookmark_event_router_.reset(new ExtensionBookmarkEventRouter(
712 profile_->GetBookmarkModel())); 711 profile_->GetBookmarkModel()));
713 bookmark_event_router_->Init(); 712 bookmark_event_router_->Init();
714 cookies_event_router_.reset(new ExtensionCookiesEventRouter(profile_)); 713 cookies_event_router_.reset(new ExtensionCookiesEventRouter(profile_));
715 cookies_event_router_->Init(); 714 cookies_event_router_->Init();
716 management_event_router_.reset(new ExtensionManagementEventRouter(profile_)); 715 management_event_router_.reset(new ExtensionManagementEventRouter(profile_));
717 management_event_router_->Init(); 716 management_event_router_->Init();
(...skipping 2174 matching lines...) Expand 10 before | Expand all | Expand 10 after
2892 2891
2893 ExtensionService::NaClModuleInfoList::iterator 2892 ExtensionService::NaClModuleInfoList::iterator
2894 ExtensionService::FindNaClModule(const GURL& url) { 2893 ExtensionService::FindNaClModule(const GURL& url) {
2895 for (NaClModuleInfoList::iterator iter = nacl_module_list_.begin(); 2894 for (NaClModuleInfoList::iterator iter = nacl_module_list_.begin();
2896 iter != nacl_module_list_.end(); ++iter) { 2895 iter != nacl_module_list_.end(); ++iter) {
2897 if (iter->url == url) 2896 if (iter->url == url)
2898 return iter; 2897 return iter;
2899 } 2898 }
2900 return nacl_module_list_.end(); 2899 return nacl_module_list_.end();
2901 } 2900 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_accessibility_api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698