| 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 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 ExtensionService::ExtensionService(Profile* profile, | 585 ExtensionService::ExtensionService(Profile* profile, |
| 586 const CommandLine* command_line, | 586 const CommandLine* command_line, |
| 587 const FilePath& install_directory, | 587 const FilePath& install_directory, |
| 588 ExtensionPrefs* extension_prefs, | 588 ExtensionPrefs* extension_prefs, |
| 589 bool autoupdate_enabled, | 589 bool autoupdate_enabled, |
| 590 bool extensions_enabled) | 590 bool extensions_enabled) |
| 591 : weak_ptr_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), | 591 : weak_ptr_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), |
| 592 method_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), | 592 method_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), |
| 593 profile_(profile), | 593 profile_(profile), |
| 594 extension_prefs_(extension_prefs), | 594 extension_prefs_(extension_prefs), |
| 595 extension_settings_frontend_( | 595 extension_settings_frontend_(profile), |
| 596 profile->GetPath().AppendASCII(kSettingsDirectoryName)), | |
| 597 pending_extension_manager_(*ALLOW_THIS_IN_INITIALIZER_LIST(this)), | 596 pending_extension_manager_(*ALLOW_THIS_IN_INITIALIZER_LIST(this)), |
| 598 install_directory_(install_directory), | 597 install_directory_(install_directory), |
| 599 extensions_enabled_(extensions_enabled), | 598 extensions_enabled_(extensions_enabled), |
| 600 show_extensions_prompts_(true), | 599 show_extensions_prompts_(true), |
| 601 ready_(false), | 600 ready_(false), |
| 602 toolbar_model_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), | 601 toolbar_model_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), |
| 603 app_notification_manager_(new AppNotificationManager(profile)), | 602 app_notification_manager_(new AppNotificationManager(profile)), |
| 604 permissions_manager_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), | 603 permissions_manager_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), |
| 605 apps_promo_(profile->GetPrefs()), | 604 apps_promo_(profile->GetPrefs()), |
| 606 event_routers_initialized_(false) { | 605 event_routers_initialized_(false) { |
| (...skipping 2376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2983 | 2982 |
| 2984 ExtensionService::NaClModuleInfoList::iterator | 2983 ExtensionService::NaClModuleInfoList::iterator |
| 2985 ExtensionService::FindNaClModule(const GURL& url) { | 2984 ExtensionService::FindNaClModule(const GURL& url) { |
| 2986 for (NaClModuleInfoList::iterator iter = nacl_module_list_.begin(); | 2985 for (NaClModuleInfoList::iterator iter = nacl_module_list_.begin(); |
| 2987 iter != nacl_module_list_.end(); ++iter) { | 2986 iter != nacl_module_list_.end(); ++iter) { |
| 2988 if (iter->url == url) | 2987 if (iter->url == url) |
| 2989 return iter; | 2988 return iter; |
| 2990 } | 2989 } |
| 2991 return nacl_module_list_.end(); | 2990 return nacl_module_list_.end(); |
| 2992 } | 2991 } |
| OLD | NEW |