| 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 2294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2896 | 2895 |
| 2897 ExtensionService::NaClModuleInfoList::iterator | 2896 ExtensionService::NaClModuleInfoList::iterator |
| 2898 ExtensionService::FindNaClModule(const GURL& url) { | 2897 ExtensionService::FindNaClModule(const GURL& url) { |
| 2899 for (NaClModuleInfoList::iterator iter = nacl_module_list_.begin(); | 2898 for (NaClModuleInfoList::iterator iter = nacl_module_list_.begin(); |
| 2900 iter != nacl_module_list_.end(); ++iter) { | 2899 iter != nacl_module_list_.end(); ++iter) { |
| 2901 if (iter->url == url) | 2900 if (iter->url == url) |
| 2902 return iter; | 2901 return iter; |
| 2903 } | 2902 } |
| 2904 return nacl_module_list_.end(); | 2903 return nacl_module_list_.end(); |
| 2905 } | 2904 } |
| OLD | NEW |