Commit 0edd1aaf authored by scherkus@chromium.org's avatar scherkus@chromium.org

Enable logging for media_bench.


Review URL: http://codereview.chromium.org/7629007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96681 0039d316-1c4b-4281-b951-d872f2087c98
parent 6f655324
...@@ -89,8 +89,15 @@ int main(int argc, const char** argv) { ...@@ -89,8 +89,15 @@ int main(int argc, const char** argv) {
base::AtExitManager exit_manager; base::AtExitManager exit_manager;
CommandLine::Init(argc, argv); 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(); const CommandLine::StringVector& filenames = cmd_line->GetArgs();
if (filenames.empty()) { if (filenames.empty()) {
std::cerr << "Usage: " << argv[0] << " [OPTIONS] FILE [DUMPFILE]\n" std::cerr << "Usage: " << argv[0] << " [OPTIONS] FILE [DUMPFILE]\n"
...@@ -122,8 +129,8 @@ int main(int argc, const char** argv) { ...@@ -122,8 +129,8 @@ int main(int argc, const char** argv) {
// Initialize our media library (try loading DLLs, etc.) before continuing. // Initialize our media library (try loading DLLs, etc.) before continuing.
// We use an empty file path as the parameter to force searching of the // We use an empty file path as the parameter to force searching of the
// default locations for necessary DLLs and DSOs. // default locations for necessary DLLs and DSOs.
if (media::InitializeMediaLibrary(FilePath()) == false) { if (!media::InitializeMediaLibrary(FilePath())) {
std::cerr << "Unable to initialize the media library."; std::cerr << "Unable to initialize the media library." << std::endl;
return 1; return 1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment