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 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 ExtensionService::ExtensionService(Profile* profile, | 587 ExtensionService::ExtensionService(Profile* profile, |
588 const CommandLine* command_line, | 588 const CommandLine* command_line, |
589 const FilePath& install_directory, | 589 const FilePath& install_directory, |
590 ExtensionPrefs* extension_prefs, | 590 ExtensionPrefs* extension_prefs, |
591 bool autoupdate_enabled, | 591 bool autoupdate_enabled, |
592 bool extensions_enabled) | 592 bool extensions_enabled) |
593 : weak_ptr_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), | 593 : weak_ptr_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), |
594 method_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), | 594 method_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), |
595 profile_(profile), | 595 profile_(profile), |
596 extension_prefs_(extension_prefs), | 596 extension_prefs_(extension_prefs), |
597 extension_settings_frontend_( | 597 extension_settings_frontend_(profile), |
598 profile->GetPath().AppendASCII(kSettingsDirectoryName)), | |
599 pending_extension_manager_(*ALLOW_THIS_IN_INITIALIZER_LIST(this)), | 598 pending_extension_manager_(*ALLOW_THIS_IN_INITIALIZER_LIST(this)), |
600 install_directory_(install_directory), | 599 install_directory_(install_directory), |
601 extensions_enabled_(extensions_enabled), | 600 extensions_enabled_(extensions_enabled), |
602 show_extensions_prompts_(true), | 601 show_extensions_prompts_(true), |
603 ready_(false), | 602 ready_(false), |
604 toolbar_model_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), | 603 toolbar_model_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), |
605 menu_manager_(profile), | 604 menu_manager_(profile), |
606 app_notification_manager_(new AppNotificationManager(profile)), | 605 app_notification_manager_(new AppNotificationManager(profile)), |
607 permissions_manager_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), | 606 permissions_manager_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), |
608 apps_promo_(profile->GetPrefs()), | 607 apps_promo_(profile->GetPrefs()), |
(...skipping 2393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3002 | 3001 |
3003 ExtensionService::NaClModuleInfoList::iterator | 3002 ExtensionService::NaClModuleInfoList::iterator |
3004 ExtensionService::FindNaClModule(const GURL& url) { | 3003 ExtensionService::FindNaClModule(const GURL& url) { |
3005 for (NaClModuleInfoList::iterator iter = nacl_module_list_.begin(); | 3004 for (NaClModuleInfoList::iterator iter = nacl_module_list_.begin(); |
3006 iter != nacl_module_list_.end(); ++iter) { | 3005 iter != nacl_module_list_.end(); ++iter) { |
3007 if (iter->url == url) | 3006 if (iter->url == url) |
3008 return iter; | 3007 return iter; |
3009 } | 3008 } |
3010 return nacl_module_list_.end(); | 3009 return nacl_module_list_.end(); |
3011 } | 3010 } |
OLD | NEW |