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

Side by Side Diff: media/tools/player_x11/player_x11.cc

Issue 819203002: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <signal.h> 5 #include <signal.h>
6 6
7 #include <iostream> // NOLINT 7 #include <iostream> // NOLINT
8 8
9 #include "base/at_exit.h" 9 #include "base/at_exit.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 base::Bind(&PeriodicalUpdate, 222 base::Bind(&PeriodicalUpdate,
223 base::Unretained(pipeline), 223 base::Unretained(pipeline),
224 message_loop), 224 message_loop),
225 base::TimeDelta::FromMilliseconds(10)); 225 base::TimeDelta::FromMilliseconds(10));
226 } 226 }
227 227
228 int main(int argc, char** argv) { 228 int main(int argc, char** argv) {
229 base::AtExitManager at_exit; 229 base::AtExitManager at_exit;
230 media::InitializeMediaLibraryForTesting(); 230 media::InitializeMediaLibraryForTesting();
231 231
232 CommandLine::Init(argc, argv); 232 base::CommandLine::Init(argc, argv);
233 CommandLine* command_line = CommandLine::ForCurrentProcess(); 233 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
234 std::string filename = command_line->GetSwitchValueASCII("file"); 234 std::string filename = command_line->GetSwitchValueASCII("file");
235 235
236 if (filename.empty()) { 236 if (filename.empty()) {
237 std::cout << "Usage: " << argv[0] << " --file=FILE" << std::endl 237 std::cout << "Usage: " << argv[0] << " --file=FILE" << std::endl
238 << std::endl 238 << std::endl
239 << "Optional arguments:" << std::endl 239 << "Optional arguments:" << std::endl
240 << " [--audio]" 240 << " [--audio]"
241 << " [--alsa-device=DEVICE]" 241 << " [--alsa-device=DEVICE]"
242 << " [--use-gl]" 242 << " [--use-gl]"
243 << " [--streaming]" << std::endl 243 << " [--streaming]" << std::endl
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 // Release callback which releases video renderer. Do this before cleaning up 301 // Release callback which releases video renderer. Do this before cleaning up
302 // X below since the video renderer has some X cleanup duties as well. 302 // X below since the video renderer has some X cleanup duties as well.
303 paint_cb.Reset(); 303 paint_cb.Reset();
304 304
305 XDestroyWindow(g_display, g_window); 305 XDestroyWindow(g_display, g_window);
306 XCloseDisplay(g_display); 306 XCloseDisplay(g_display);
307 g_audio_manager = NULL; 307 g_audio_manager = NULL;
308 308
309 return 0; 309 return 0;
310 } 310 }
OLDNEW
« no previous file with comments | « media/filters/vpx_video_decoder.cc ('k') | media/video/capture/file_video_capture_device_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698