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

Unified Diff: media/mojo/services/mojo_media_application.cc

Issue 1088993004: Update run_mojo_media_renderer.py for shell and service changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove out of date base::CommandLine init. 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
« no previous file with comments | « media/mojo/scripts/run_mojo_media_renderer.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/mojo_media_application.cc
diff --git a/media/mojo/services/mojo_media_application.cc b/media/mojo/services/mojo_media_application.cc
index 48597bd9e00bea24bdc4e61c7519cf93ae354c99..7a24637a0f95cf643c28c4b56d1723051496ac24 100644
--- a/media/mojo/services/mojo_media_application.cc
+++ b/media/mojo/services/mojo_media_application.cc
@@ -2,9 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "base/command_line.h"
#include "base/logging.h"
-#include "base/strings/utf_string_conversions.h"
#include "media/mojo/services/mojo_renderer_service.h"
#include "mojo/application/application_runner_chromium.h"
#include "third_party/mojo/src/mojo/public/c/system/main.h"
@@ -21,17 +19,6 @@ class MojoMediaApplication
public:
// mojo::ApplicationDelegate implementation.
void Initialize(mojo::ApplicationImpl* app) override {
- 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;
logging::InitLogging(settings);
« no previous file with comments | « media/mojo/scripts/run_mojo_media_renderer.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698