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

Side by Side Diff: webkit/tools/test_shell/test_shell.cc

Issue 18248: CommandLine API rework (Closed)
Patch Set: fixes Created 11 years, 11 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 unified diff | Download patch
« no previous file with comments | « webkit/tools/test_shell/run_all_tests.cc ('k') | webkit/tools/test_shell/test_shell_main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "webkit/tools/test_shell/test_shell.h" 5 #include "webkit/tools/test_shell/test_shell.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/debug_on_start.h" 8 #include "base/debug_on_start.h"
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 } 494 }
495 } 495 }
496 } 496 }
497 } 497 }
498 498
499 //----------------------------------------------------------------------------- 499 //-----------------------------------------------------------------------------
500 500
501 namespace webkit_glue { 501 namespace webkit_glue {
502 502
503 bool IsMediaPlayerAvailable() { 503 bool IsMediaPlayerAvailable() {
504 return CommandLine().HasSwitch(test_shell::kEnableVideo); 504 return CommandLine::ForCurrentProcess()->HasSwitch(test_shell::kEnableVideo);
505 } 505 }
506 506
507 void PrefetchDns(const std::string& hostname) {} 507 void PrefetchDns(const std::string& hostname) {}
508 508
509 void PrecacheUrl(const char16* url, int url_length) {} 509 void PrecacheUrl(const char16* url, int url_length) {}
510 510
511 void AppendToLog(const char* file, int line, const char* msg) { 511 void AppendToLog(const char* file, int line, const char* msg) {
512 logging::LogMessage(file, line).stream() << msg; 512 logging::LogMessage(file, line).stream() << msg;
513 } 513 }
514 514
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 627
628 uint64 VisitedLinkHash(const char* canonical_url, size_t length) { 628 uint64 VisitedLinkHash(const char* canonical_url, size_t length) {
629 return 0; 629 return 0;
630 } 630 }
631 631
632 bool IsLinkVisited(uint64 link_hash) { 632 bool IsLinkVisited(uint64 link_hash) {
633 return false; 633 return false;
634 } 634 }
635 635
636 } // namespace webkit_glue 636 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/run_all_tests.cc ('k') | webkit/tools/test_shell/test_shell_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698