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

Unified Diff: media/tools/media_bench/media_bench.cc

Issue 7629007: Enable logging for media_bench. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: Created 9 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/tools/media_bench/media_bench.cc
diff --git a/media/tools/media_bench/media_bench.cc b/media/tools/media_bench/media_bench.cc
index 66c3536ee23bb37786d9a7a5924f3d2bb00e479c..fc732bf4acfe7c1a5c88fa9fe896542ee01dcb0a 100644
--- a/media/tools/media_bench/media_bench.cc
+++ b/media/tools/media_bench/media_bench.cc
@@ -89,8 +89,15 @@ int main(int argc, const char** argv) {
base::AtExitManager exit_manager;
CommandLine::Init(argc, argv);
- const CommandLine* cmd_line = CommandLine::ForCurrentProcess();
+ logging::InitLogging(
+ NULL,
+ logging::LOG_ONLY_TO_SYSTEM_DEBUG_LOG,
+ logging::LOCK_LOG_FILE, // Ignored.
+ logging::DELETE_OLD_LOG_FILE, // Ignored.
+ logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS);
+
+ const CommandLine* cmd_line = CommandLine::ForCurrentProcess();
const CommandLine::StringVector& filenames = cmd_line->GetArgs();
if (filenames.empty()) {
std::cerr << "Usage: " << argv[0] << " [OPTIONS] FILE [DUMPFILE]\n"
@@ -122,8 +129,8 @@ int main(int argc, const char** argv) {
// Initialize our media library (try loading DLLs, etc.) before continuing.
// We use an empty file path as the parameter to force searching of the
// default locations for necessary DLLs and DSOs.
- if (media::InitializeMediaLibrary(FilePath()) == false) {
- std::cerr << "Unable to initialize the media library.";
+ if (!media::InitializeMediaLibrary(FilePath())) {
+ std::cerr << "Unable to initialize the media library." << std::endl;
return 1;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698