From b969648e443de8c767d7e2f6b34861b4a1ee3eec Mon Sep 17 00:00:00 2001 From: "evan@chromium.org" Date: Tue, 30 Nov 2010 23:56:18 +0000 Subject: windows: remove PathService::Get() that uses wstrings This just required fixing the remaining callers. BUG=24672 Review URL: http://codereview.chromium.org/5356008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67783 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/jumplist_win.cc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'chrome/browser/jumplist_win.cc') diff --git a/chrome/browser/jumplist_win.cc b/chrome/browser/jumplist_win.cc index ddea51c..083dc80 100644 --- a/chrome/browser/jumplist_win.cc +++ b/chrome/browser/jumplist_win.cc @@ -416,7 +416,7 @@ bool UpdateJumpList(const wchar_t* app_id, return false; // Retrieve the absolute path to "chrome.exe". - std::wstring chrome_path; + FilePath chrome_path; if (!PathService::Get(base::FILE_EXE, &chrome_path)) return false; @@ -447,20 +447,21 @@ bool UpdateJumpList(const wchar_t* app_id, // This update request is applied into the JumpList when we commit this // transaction. result = UpdateCategory(destination_list, IDS_NEW_TAB_MOST_VISITED, - chrome_path, chrome_switches, most_visited_pages, - most_visited_items); + chrome_path.value(), chrome_switches, + most_visited_pages, most_visited_items); if (FAILED(result)) return false; // Update the "Recently Closed" category of the JumpList. result = UpdateCategory(destination_list, IDS_NEW_TAB_RECENTLY_CLOSED, - chrome_path, chrome_switches, recently_closed_pages, - recently_closed_items); + chrome_path.value(), chrome_switches, + recently_closed_pages, recently_closed_items); if (FAILED(result)) return false; // Update the "Tasks" category of the JumpList. - result = UpdateTaskCategory(destination_list, chrome_path, chrome_switches); + result = UpdateTaskCategory(destination_list, chrome_path.value(), + chrome_switches); if (FAILED(result)) return false; -- cgit v1.1