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

Unified Diff: mojo/runner/context.cc

Issue 1344933002: Clean up some unused methods from ApplicationManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/runner/child_process_host_unittest.cc ('k') | mojo/runner/in_process_native_runner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/runner/context.cc
diff --git a/mojo/runner/context.cc b/mojo/runner/context.cc
index 24526b4e9a17116a0eaf67096fefbf6157d29a38..fc312bfff7a30a0f5e119f73f94b6c85fd5df987 100644
--- a/mojo/runner/context.cc
+++ b/mojo/runner/context.cc
@@ -107,25 +107,6 @@ void InitContentHandlers(shell::ApplicationManager* manager,
}
}
-void InitNativeOptions(shell::ApplicationManager* manager,
- const base::CommandLine& command_line) {
- std::vector<std::string> force_in_process_url_list = base::SplitString(
- command_line.GetSwitchValueASCII(switches::kForceInProcess), ",",
- base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
- for (const auto& force_in_process_url : force_in_process_url_list) {
- GURL gurl(force_in_process_url);
- if (!gurl.is_valid()) {
- LOG(ERROR) << "Invalid value for switch " << switches::kForceInProcess
- << ": '" << force_in_process_url << "'is not a valid URL.";
- return;
- }
-
- shell::NativeRunnerFactory::Options options;
- options.force_in_process = true;
- manager->SetNativeOptionsForURL(options, gurl);
- }
-}
-
void InitDevToolsServiceIfNeeded(shell::ApplicationManager* manager,
const base::CommandLine& command_line) {
if (!command_line.HasSwitch(devtools_service::kRemoteDebuggingPort))
@@ -218,7 +199,6 @@ bool Context::Init() {
application_manager_->set_native_runner_factory(runner_factory.Pass());
InitContentHandlers(application_manager_.get(), command_line);
- InitNativeOptions(application_manager_.get(), command_line);
ServiceProviderPtr service_provider_ptr;
ServiceProviderPtr tracing_service_provider_ptr;
« no previous file with comments | « mojo/runner/child_process_host_unittest.cc ('k') | mojo/runner/in_process_native_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698