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

Unified Diff: mojo/services/html_viewer/html_viewer.cc

Issue 1057603003: Simplify mojo_shell since it's now only used for Mandoline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: default url Created 5 years, 8 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
Index: mojo/services/html_viewer/html_viewer.cc
diff --git a/mojo/services/html_viewer/html_viewer.cc b/mojo/services/html_viewer/html_viewer.cc
index 1391c1c7372f501971e944e68dc8913ac67031c2..a5aa774ecae8e111fcfc8670afd524811813b7b6 100644
--- a/mojo/services/html_viewer/html_viewer.cc
+++ b/mojo/services/html_viewer/html_viewer.cc
@@ -47,8 +47,7 @@ using mojo::URLResponsePtr;
namespace html_viewer {
-// Switches for html_viewer to be used with "--args-for". For example:
-// --args-for='mojo:html_viewer --enable-mojo-media-renderer'
+// Switches for html_viewer.
// Enable MediaRenderer in media pipeline instead of using the internal
// media::Renderer implementation.
@@ -186,16 +185,7 @@ class HTMLViewer : public mojo::ApplicationDelegate,
ui::RegisterPathProvider();
- base::CommandLine::StringVector command_line_args;
-#if defined(OS_WIN)
- for (const auto& arg : app->args())
- command_line_args.push_back(base::UTF8ToUTF16(arg));
-#elif defined(OS_POSIX)
- command_line_args = app->args();
-#endif
-
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
- command_line->InitFromArgv(command_line_args);
logging::LoggingSettings settings;
settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG;

Powered by Google App Engine
This is Rietveld 408576698