summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/ash/screenshot_taker.cc
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/ui/ash/screenshot_taker.cc
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/ui/ash/screenshot_taker.cc')
-rw-r--r--chrome/browser/ui/ash/screenshot_taker.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/ui/ash/screenshot_taker.cc b/chrome/browser/ui/ash/screenshot_taker.cc
index 12e6bd2..3e9d655 100644
--- a/chrome/browser/ui/ash/screenshot_taker.cc
+++ b/chrome/browser/ui/ash/screenshot_taker.cc
@@ -153,7 +153,7 @@ void ScreenshotTaker::HandleTakePartialScreenshot(
if (is_logged_in) {
DownloadPrefs* download_prefs = DownloadPrefs::FromBrowserContext(
ash::Shell::GetInstance()->delegate()->GetCurrentBrowserContext());
- screenshot_directory = download_prefs->download_path();
+ screenshot_directory = download_prefs->DownloadPath();
} else {
if (!file_util::GetTempDir(&screenshot_directory)) {
LOG(ERROR) << "Failed to find temporary directory.";