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

Unified Diff: chrome/browser/printing/printing_layout_uitest.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/plugin_process_host.cc ('k') | chrome/browser/render_view_context_menu_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/printing/printing_layout_uitest.cc
diff --git a/chrome/browser/printing/printing_layout_uitest.cc b/chrome/browser/printing/printing_layout_uitest.cc
index 086c2b944b3139aebf4048fcedb9c52bb7139df5..038ee5d6d3001550dfec5d11a894ac05b701bb92 100644
--- a/chrome/browser/printing/printing_layout_uitest.cc
+++ b/chrome/browser/printing/printing_layout_uitest.cc
@@ -204,10 +204,7 @@ class PrintingLayoutTest : public PrintingTest<UITest> {
PrintingLayoutTest() {
emf_path_ = browser_directory_;
file_util::AppendToPath(&emf_path_, L"emf_dumps");
- std::wstring arg(L" --debug-print=\"");
- arg += emf_path_;
- arg += L"\"";
- launch_arguments_.append(arg);
+ launch_arguments_.AppendSwitchWithValue(L"debug-print", L'"' + emf_path_ + L'"');
show_window_ = true;
}
@@ -371,7 +368,7 @@ class PrintingLayoutTest : public PrintingTest<UITest> {
}
static bool GenerateFiles() {
- return CommandLine().HasSwitch(kGenerateSwitch);
+ return CommandLine::ForCurrentProcess()->HasSwitch(kGenerateSwitch);
}
const std::wstring& emf_path() const { return emf_path_; }
« no previous file with comments | « chrome/browser/plugin_process_host.cc ('k') | chrome/browser/render_view_context_menu_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698