| 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/bind.h" | 10 #include "base/bind.h" |
| (...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 584 | 584 |
| 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 profile_(profile), | 592 profile_(profile), |
| 593 extension_prefs_(extension_prefs), | 593 extension_prefs_(extension_prefs), |
| 594 extension_settings_frontend_( | 594 extension_settings_frontend_(profile), |
| 595 profile->GetPath().AppendASCII(kSettingsDirectoryName)), | |
| 596 pending_extension_manager_(*ALLOW_THIS_IN_INITIALIZER_LIST(this)), | 595 pending_extension_manager_(*ALLOW_THIS_IN_INITIALIZER_LIST(this)), |
| 597 install_directory_(install_directory), | 596 install_directory_(install_directory), |
| 598 extensions_enabled_(extensions_enabled), | 597 extensions_enabled_(extensions_enabled), |
| 599 show_extensions_prompts_(true), | 598 show_extensions_prompts_(true), |
| 600 ready_(false), | 599 ready_(false), |
| 601 toolbar_model_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), | 600 toolbar_model_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), |
| 602 menu_manager_(profile), | 601 menu_manager_(profile), |
| 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()), |
| (...skipping 2410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3016 | 3015 |
| 3017 ExtensionService::NaClModuleInfoList::iterator | 3016 ExtensionService::NaClModuleInfoList::iterator |
| 3018 ExtensionService::FindNaClModule(const GURL& url) { | 3017 ExtensionService::FindNaClModule(const GURL& url) { |
| 3019 for (NaClModuleInfoList::iterator iter = nacl_module_list_.begin(); | 3018 for (NaClModuleInfoList::iterator iter = nacl_module_list_.begin(); |
| 3020 iter != nacl_module_list_.end(); ++iter) { | 3019 iter != nacl_module_list_.end(); ++iter) { |
| 3021 if (iter->url == url) | 3020 if (iter->url == url) |
| 3022 return iter; | 3021 return iter; |
| 3023 } | 3022 } |
| 3024 return nacl_module_list_.end(); | 3023 return nacl_module_list_.end(); |
| 3025 } | 3024 } |
| OLD | NEW |