OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "apps/shell/shell_content_browser_client.h" | 5 #include "apps/shell/browser/shell_content_browser_client.h" |
6 | 6 |
7 #include "apps/shell/shell_browser_context.h" | 7 #include "apps/shell/browser/shell_browser_context.h" |
8 #include "apps/shell/shell_browser_main_parts.h" | 8 #include "apps/shell/browser/shell_browser_main_parts.h" |
9 #include "apps/shell/shell_extension_system.h" | 9 #include "apps/shell/browser/shell_extension_system.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "chrome/browser/extensions/extension_protocols.h" | 11 #include "chrome/browser/extensions/extension_protocols.h" |
12 #include "chrome/browser/extensions/extension_resource_protocols.h" | 12 #include "chrome/browser/extensions/extension_resource_protocols.h" |
13 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
14 #include "content/public/browser/render_process_host.h" | 14 #include "content/public/browser/render_process_host.h" |
15 #include "content/public/browser/site_instance.h" | 15 #include "content/public/browser/site_instance.h" |
16 #include "content/public/common/content_switches.h" | 16 #include "content/public/common/content_switches.h" |
17 #include "content/public/common/url_constants.h" | 17 #include "content/public/common/url_constants.h" |
18 #include "content/shell/browser/shell_browser_context.h" | 18 #include "content/shell/browser/shell_browser_context.h" |
19 #include "extensions/browser/extension_message_filter.h" | 19 #include "extensions/browser/extension_message_filter.h" |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 | 149 |
150 const extensions::Extension* ShellContentBrowserClient::GetExtension( | 150 const extensions::Extension* ShellContentBrowserClient::GetExtension( |
151 content::SiteInstance* site_instance) { | 151 content::SiteInstance* site_instance) { |
152 ExtensionRegistry* registry = | 152 ExtensionRegistry* registry = |
153 ExtensionRegistry::Get(site_instance->GetBrowserContext()); | 153 ExtensionRegistry::Get(site_instance->GetBrowserContext()); |
154 return registry->enabled_extensions().GetExtensionOrAppByURL( | 154 return registry->enabled_extensions().GetExtensionOrAppByURL( |
155 site_instance->GetSiteURL()); | 155 site_instance->GetSiteURL()); |
156 } | 156 } |
157 | 157 |
158 } // namespace apps | 158 } // namespace apps |
OLD | NEW |