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

Unified Diff: chrome/browser/jumplist_win.cc

Issue 3012021: CommandLine: add a CopySwitchesFrom() for copying from another CommandLine (Closed)
Patch Set: minor cleanups 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
« no previous file with comments | « chrome/browser/gpu_process_host.cc ('k') | chrome/browser/nacl_host/nacl_broker_host_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/jumplist_win.cc
diff --git a/chrome/browser/jumplist_win.cc b/chrome/browser/jumplist_win.cc
index e77b55c3f0c0818c6762d4dc246cf7a8a48f1002..1f434f677afbb5410636533f4aef42c771950641 100644
--- a/chrome/browser/jumplist_win.cc
+++ b/chrome/browser/jumplist_win.cc
@@ -422,10 +422,10 @@ bool UpdateJumpList(const wchar_t* app_id,
// Retrieve the command-line switches of this process.
CommandLine command_line(CommandLine::ARGUMENTS_ONLY);
- std::wstring user_data_dir = CommandLine::ForCurrentProcess()->
- GetSwitchValue(switches::kUserDataDir);
+ FilePath user_data_dir = CommandLine::ForCurrentProcess()->
+ GetSwitchValuePath(switches::kUserDataDir);
if (!user_data_dir.empty())
- command_line.AppendSwitchWithValue(switches::kUserDataDir, user_data_dir);
+ command_line.AppendSwitchPath(switches::kUserDataDir, user_data_dir);
std::wstring chrome_switches = command_line.command_line_string();
« no previous file with comments | « chrome/browser/gpu_process_host.cc ('k') | chrome/browser/nacl_host/nacl_broker_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698