summaryrefslogtreecommitdiffstats
path: root/chrome/browser/automation/automation_provider.cc
diff options
context:
space:
mode:
authorfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-30 20:46:33 +0000
committerfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-30 20:46:33 +0000
commit1f733cf713cdb0a05f24657a278d49c3a4b88a30 (patch)
tree2a966ac70350e26df001b64dfd4811ccce41ceed /chrome/browser/automation/automation_provider.cc
parent57a336aa8b9a591e42fadcae359b20d596af7526 (diff)
downloadchromium_src-1f733cf713cdb0a05f24657a278d49c3a4b88a30.zip
chromium_src-1f733cf713cdb0a05f24657a278d49c3a4b88a30.tar.gz
chromium_src-1f733cf713cdb0a05f24657a278d49c3a4b88a30.tar.bz2
Landing patch from contributor Thiago Farina.
Update GetDownloadDirectory to take FilePath instead of wstring to avoid conversions "To and From wstring". BUG=None TEST=run ui_tests.exe Review URL: http://codereview.chromium.org/243047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27653 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/automation/automation_provider.cc')
-rw-r--r--chrome/browser/automation/automation_provider.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/automation/automation_provider.cc b/chrome/browser/automation/automation_provider.cc
index f93d39c..0f77ad3 100644
--- a/chrome/browser/automation/automation_provider.cc
+++ b/chrome/browser/automation/automation_provider.cc
@@ -1246,13 +1246,13 @@ void AutomationProvider::SetProxyConfig(const std::string& new_proxy_config) {
}
void AutomationProvider::GetDownloadDirectory(
- int handle, std::wstring* download_directory) {
+ int handle, FilePath* download_directory) {
DLOG(INFO) << "Handling download directory request";
if (tab_tracker_->ContainsHandle(handle)) {
NavigationController* tab = tab_tracker_->GetResource(handle);
DownloadManager* dlm = tab->profile()->GetDownloadManager();
DCHECK(dlm);
- *download_directory = dlm->download_path().ToWStringHack();
+ *download_directory = dlm->download_path();
}
}