Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(402)

Side by Side Diff: extensions/shell/browser/shell_content_browser_client.cc

Issue 2272213003: DevTools: remove devtools_discovery (merged into content). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fix Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « extensions/shell/BUILD.gn ('k') | headless/lib/browser/headless_devtools_manager_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "extensions/shell/browser/shell_content_browser_client.h" 5 #include "extensions/shell/browser/shell_content_browser_client.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 218
219 void ShellContentBrowserClient::GetAdditionalAllowedSchemesForFileSystem( 219 void ShellContentBrowserClient::GetAdditionalAllowedSchemesForFileSystem(
220 std::vector<std::string>* additional_allowed_schemes) { 220 std::vector<std::string>* additional_allowed_schemes) {
221 ContentBrowserClient::GetAdditionalAllowedSchemesForFileSystem( 221 ContentBrowserClient::GetAdditionalAllowedSchemesForFileSystem(
222 additional_allowed_schemes); 222 additional_allowed_schemes);
223 additional_allowed_schemes->push_back(kExtensionScheme); 223 additional_allowed_schemes->push_back(kExtensionScheme);
224 } 224 }
225 225
226 content::DevToolsManagerDelegate* 226 content::DevToolsManagerDelegate*
227 ShellContentBrowserClient::GetDevToolsManagerDelegate() { 227 ShellContentBrowserClient::GetDevToolsManagerDelegate() {
228 return new content::ShellDevToolsManagerDelegate(); 228 return new content::ShellDevToolsManagerDelegate(GetBrowserContext());
229 } 229 }
230 230
231 ShellBrowserMainParts* ShellContentBrowserClient::CreateShellBrowserMainParts( 231 ShellBrowserMainParts* ShellContentBrowserClient::CreateShellBrowserMainParts(
232 const content::MainFunctionParams& parameters, 232 const content::MainFunctionParams& parameters,
233 ShellBrowserMainDelegate* browser_main_delegate) { 233 ShellBrowserMainDelegate* browser_main_delegate) {
234 return new ShellBrowserMainParts(parameters, browser_main_delegate); 234 return new ShellBrowserMainParts(parameters, browser_main_delegate);
235 } 235 }
236 236
237 void ShellContentBrowserClient::AppendRendererSwitches( 237 void ShellContentBrowserClient::AppendRendererSwitches(
238 base::CommandLine* command_line) { 238 base::CommandLine* command_line) {
(...skipping 15 matching lines...) Expand all
254 254
255 const Extension* ShellContentBrowserClient::GetExtension( 255 const Extension* ShellContentBrowserClient::GetExtension(
256 content::SiteInstance* site_instance) { 256 content::SiteInstance* site_instance) {
257 ExtensionRegistry* registry = 257 ExtensionRegistry* registry =
258 ExtensionRegistry::Get(site_instance->GetBrowserContext()); 258 ExtensionRegistry::Get(site_instance->GetBrowserContext());
259 return registry->enabled_extensions().GetExtensionOrAppByURL( 259 return registry->enabled_extensions().GetExtensionOrAppByURL(
260 site_instance->GetSiteURL()); 260 site_instance->GetSiteURL());
261 } 261 }
262 262
263 } // namespace extensions 263 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/shell/BUILD.gn ('k') | headless/lib/browser/headless_devtools_manager_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698