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 "android_webview/browser/aw_content_browser_client.h" | 5 #include "android_webview/browser/aw_content_browser_client.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "android_webview/browser/aw_browser_context.h" | 9 #include "android_webview/browser/aw_browser_context.h" |
10 #include "android_webview/browser/aw_browser_main_parts.h" | 10 #include "android_webview/browser/aw_browser_main_parts.h" |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
263 for (size_t i = 0; i < arraysize(kProtocolList); ++i) { | 263 for (size_t i = 0; i < arraysize(kProtocolList); ++i) { |
264 if (scheme == kProtocolList[i]) | 264 if (scheme == kProtocolList[i]) |
265 return true; | 265 return true; |
266 } | 266 } |
267 return net::URLRequest::IsHandledProtocol(scheme); | 267 return net::URLRequest::IsHandledProtocol(scheme); |
268 } | 268 } |
269 | 269 |
270 void AwContentBrowserClient::AppendExtraCommandLineSwitches( | 270 void AwContentBrowserClient::AppendExtraCommandLineSwitches( |
271 base::CommandLine* command_line, | 271 base::CommandLine* command_line, |
272 int child_process_id) { | 272 int child_process_id) { |
273 if (command_line->HasSwitch(switches::kSingleProcess)) { | 273 if (command_line->HasSwitch(switches::kWebViewSandboxedRenderer)) { |
274 NOTREACHED() << "Android WebView does not support multi-process yet"; | |
Torne
2017/04/10 14:06:29
This is pretty weird; I assume we never reached th
Tobias Sargeant
2017/04/10 14:21:14
Since kSingleProcess was never set, I presume we n
| |
275 } else { | |
276 // The only kind of a child process WebView can have is renderer. | 274 // The only kind of a child process WebView can have is renderer. |
277 DCHECK_EQ(switches::kRendererProcess, | 275 DCHECK_EQ(switches::kRendererProcess, |
278 command_line->GetSwitchValueASCII(switches::kProcessType)); | 276 command_line->GetSwitchValueASCII(switches::kProcessType)); |
279 // Pass crash reporter enabled state to renderer processes. | 277 // Pass crash reporter enabled state to renderer processes. |
280 if (crash_reporter::IsCrashReporterEnabled()) { | 278 if (crash_reporter::IsCrashReporterEnabled()) { |
281 command_line->AppendSwitch(::switches::kEnableCrashReporter); | 279 command_line->AppendSwitch(::switches::kEnableCrashReporter); |
282 } | 280 } |
283 } | 281 } |
284 } | 282 } |
285 | 283 |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
563 render_frame_host)); | 561 render_frame_host)); |
564 | 562 |
565 // Although WebView does not support password manager feature, renderer code | 563 // Although WebView does not support password manager feature, renderer code |
566 // could still request this interface, so we register a dummy binder which | 564 // could still request this interface, so we register a dummy binder which |
567 // just drops the incoming request, to avoid the 'Failed to locate a binder | 565 // just drops the incoming request, to avoid the 'Failed to locate a binder |
568 // for interface' error log.. | 566 // for interface' error log.. |
569 registry->AddInterface(base::Bind(&DummyBindPasswordManagerDriver)); | 567 registry->AddInterface(base::Bind(&DummyBindPasswordManagerDriver)); |
570 } | 568 } |
571 | 569 |
572 } // namespace android_webview | 570 } // namespace android_webview |
OLD | NEW |