OLD | NEW |
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 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
580 ExtensionService::ExtensionService(Profile* profile, | 580 ExtensionService::ExtensionService(Profile* profile, |
581 const CommandLine* command_line, | 581 const CommandLine* command_line, |
582 const FilePath& install_directory, | 582 const FilePath& install_directory, |
583 ExtensionPrefs* extension_prefs, | 583 ExtensionPrefs* extension_prefs, |
584 bool autoupdate_enabled, | 584 bool autoupdate_enabled, |
585 bool extensions_enabled) | 585 bool extensions_enabled) |
586 : weak_ptr_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), | 586 : weak_ptr_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), |
587 method_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), | 587 method_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), |
588 profile_(profile), | 588 profile_(profile), |
589 extension_prefs_(extension_prefs), | 589 extension_prefs_(extension_prefs), |
590 extension_settings_frontend_( | 590 extension_settings_frontend_(profile), |
591 profile->GetPath().AppendASCII(kSettingsDirectoryName)), | |
592 pending_extension_manager_(*ALLOW_THIS_IN_INITIALIZER_LIST(this)), | 591 pending_extension_manager_(*ALLOW_THIS_IN_INITIALIZER_LIST(this)), |
593 install_directory_(install_directory), | 592 install_directory_(install_directory), |
594 extensions_enabled_(extensions_enabled), | 593 extensions_enabled_(extensions_enabled), |
595 show_extensions_prompts_(true), | 594 show_extensions_prompts_(true), |
596 ready_(false), | 595 ready_(false), |
597 toolbar_model_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), | 596 toolbar_model_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), |
598 app_notification_manager_(new AppNotificationManager(profile)), | 597 app_notification_manager_(new AppNotificationManager(profile)), |
599 permissions_manager_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), | 598 permissions_manager_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), |
600 apps_promo_(profile->GetPrefs()), | 599 apps_promo_(profile->GetPrefs()), |
601 event_routers_initialized_(false) { | 600 event_routers_initialized_(false) { |
(...skipping 2303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2905 | 2904 |
2906 ExtensionService::NaClModuleInfoList::iterator | 2905 ExtensionService::NaClModuleInfoList::iterator |
2907 ExtensionService::FindNaClModule(const GURL& url) { | 2906 ExtensionService::FindNaClModule(const GURL& url) { |
2908 for (NaClModuleInfoList::iterator iter = nacl_module_list_.begin(); | 2907 for (NaClModuleInfoList::iterator iter = nacl_module_list_.begin(); |
2909 iter != nacl_module_list_.end(); ++iter) { | 2908 iter != nacl_module_list_.end(); ++iter) { |
2910 if (iter->url == url) | 2909 if (iter->url == url) |
2911 return iter; | 2910 return iter; |
2912 } | 2911 } |
2913 return nacl_module_list_.end(); | 2912 return nacl_module_list_.end(); |
2914 } | 2913 } |
OLD | NEW |