summaryrefslogtreecommitdiffstats
path: root/chrome/browser/automation
diff options
context:
space:
mode:
authorachuith@chromium.org <achuith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-20 01:30:02 +0000
committerachuith@chromium.org <achuith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-20 01:30:02 +0000
commit07a9cf58aabc1e1f5eefe0fb546ec187eaef44a3 (patch)
tree271b33231daca94214e7da26fa73fc9e62132cc3 /chrome/browser/automation
parentdc31f646fee5f9a5039fb6118b14fd66ba1464d4 (diff)
downloadchromium_src-07a9cf58aabc1e1f5eefe0fb546ec187eaef44a3.zip
chromium_src-07a9cf58aabc1e1f5eefe0fb546ec187eaef44a3.tar.gz
chromium_src-07a9cf58aabc1e1f5eefe0fb546ec187eaef44a3.tar.bz2
Fix for downloading to default destination drive in incognito mode.
* Rename DownloadPrefs::download_path() to DownloadPrefs::DownloadPath(). Most of the changes are due to this. * Store Profile* instead of PrefService* in DownloadPrefs. * Determine if GDataSystemService* is available in DownloadPath() on ChromeOS. If not, use the default download directory. BUG=137706 TEST=set default download destination to drive on cros. Open an incognito window, click on a link that would cause an automatic download. This should work. TBR=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/10805026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147592 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/automation')
-rw-r--r--chrome/browser/automation/testing_automation_provider.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc
index 2dcee1a..deb355f 100644
--- a/chrome/browser/automation/testing_automation_provider.cc
+++ b/chrome/browser/automation/testing_automation_provider.cc
@@ -1152,7 +1152,7 @@ void TestingAutomationProvider::GetDownloadDirectory(
DownloadManager* dlm =
BrowserContext::GetDownloadManager(tab->GetBrowserContext());
*download_directory =
- DownloadPrefs::FromDownloadManager(dlm)->download_path();
+ DownloadPrefs::FromDownloadManager(dlm)->DownloadPath();
}
}