OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/tab_helper.h" | 5 #include "chrome/browser/extensions/tab_helper.h" |
6 | 6 |
7 #include "chrome/browser/extensions/activity_log.h" | 7 #include "chrome/browser/extensions/activity_log.h" |
8 #include "chrome/browser/extensions/api/declarative/rules_registry_service.h" | 8 #include "chrome/browser/extensions/api/declarative/rules_registry_service.h" |
9 #include "chrome/browser/extensions/api/declarative_content/content_rules_regist
ry.h" | 9 #include "chrome/browser/extensions/api/declarative_content/content_rules_regist
ry.h" |
10 #include "chrome/browser/extensions/crx_installer.h" | 10 #include "chrome/browser/extensions/crx_installer.h" |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 : content::WebContentsObserver(web_contents), | 81 : content::WebContentsObserver(web_contents), |
82 extension_app_(NULL), | 82 extension_app_(NULL), |
83 ALLOW_THIS_IN_INITIALIZER_LIST( | 83 ALLOW_THIS_IN_INITIALIZER_LIST( |
84 extension_function_dispatcher_( | 84 extension_function_dispatcher_( |
85 Profile::FromBrowserContext(web_contents->GetBrowserContext()), | 85 Profile::FromBrowserContext(web_contents->GetBrowserContext()), |
86 this)), | 86 this)), |
87 pending_web_app_action_(NONE), | 87 pending_web_app_action_(NONE), |
88 script_executor_(new ScriptExecutor(web_contents, | 88 script_executor_(new ScriptExecutor(web_contents, |
89 &script_execution_observers_)), | 89 &script_execution_observers_)), |
90 rules_registry_service_( | 90 rules_registry_service_( |
91 ExtensionSystem::Get( | 91 ProfileKeyedAPIFactory<RulesRegistryService>::GetForProfile( |
92 Profile::FromBrowserContext(web_contents->GetBrowserContext()))-> | 92 Profile::FromBrowserContext(web_contents->GetBrowserContext()))), |
93 rules_registry_service()), | |
94 ALLOW_THIS_IN_INITIALIZER_LIST(image_loader_ptr_factory_(this)) { | 93 ALLOW_THIS_IN_INITIALIZER_LIST(image_loader_ptr_factory_(this)) { |
95 // The ActiveTabPermissionManager requires a session ID; ensure this | 94 // The ActiveTabPermissionManager requires a session ID; ensure this |
96 // WebContents has one. | 95 // WebContents has one. |
97 SessionTabHelper::CreateForWebContents(web_contents); | 96 SessionTabHelper::CreateForWebContents(web_contents); |
98 active_tab_permission_granter_.reset(new ActiveTabPermissionGranter( | 97 active_tab_permission_granter_.reset(new ActiveTabPermissionGranter( |
99 web_contents, | 98 web_contents, |
100 SessionID::IdForTab(web_contents), | 99 SessionID::IdForTab(web_contents), |
101 Profile::FromBrowserContext(web_contents->GetBrowserContext()))); | 100 Profile::FromBrowserContext(web_contents->GetBrowserContext()))); |
102 if (FeatureSwitch::script_badges()->IsEnabled()) { | 101 if (FeatureSwitch::script_badges()->IsEnabled()) { |
103 location_bar_controller_.reset( | 102 location_bar_controller_.reset( |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 script_bubble_controller_->OnExtensionUnloaded( | 455 script_bubble_controller_->OnExtensionUnloaded( |
457 content::Details<extensions::UnloadedExtensionInfo>( | 456 content::Details<extensions::UnloadedExtensionInfo>( |
458 details)->extension->id()); | 457 details)->extension->id()); |
459 break; | 458 break; |
460 } | 459 } |
461 } | 460 } |
462 } | 461 } |
463 } | 462 } |
464 | 463 |
465 } // namespace extensions | 464 } // namespace extensions |
OLD | NEW |