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

Unified Diff: webkit/tools/test_shell/test_shell_main.cc

Issue 2850042: Deprecate more old filepath functions. (Closed)
Patch Set: rebase Created 10 years, 5 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
Index: webkit/tools/test_shell/test_shell_main.cc
diff --git a/webkit/tools/test_shell/test_shell_main.cc b/webkit/tools/test_shell/test_shell_main.cc
index 412cd3a32db76b7683f8ec1d93ea3329fd1d5e6c..5cca69d0b55dba9b6ecc4c1377c92eb10ce21ebf 100644
--- a/webkit/tools/test_shell/test_shell_main.cc
+++ b/webkit/tools/test_shell/test_shell_main.cc
@@ -305,9 +305,9 @@ int main(int argc, char* argv[]) {
if (parsed_command_line.HasSwitch(test_shell::kDumpPixels)) {
// The pixel test flag also gives the image file name to use.
params.dump_pixels = true;
- params.pixel_file_name = parsed_command_line.GetSwitchValue(
+ params.pixel_file_name = parsed_command_line.GetSwitchValuePath(
test_shell::kDumpPixels);
- if (params.pixel_file_name.size() == 0) {
+ if (params.pixel_file_name.empty()) {
fprintf(stderr, "No file specified for pixel tests");
exit(1);
}

Powered by Google App Engine
This is Rietveld 408576698