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

Unified Diff: chrome/browser/debugger/devtools_file_helper.cc

Issue 10815024: Revert 147594 - NaCl: Remove two uses of '#include "nacl/nacl_log.h"' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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
Index: chrome/browser/debugger/devtools_file_helper.cc
===================================================================
--- chrome/browser/debugger/devtools_file_helper.cc (revision 147600)
+++ chrome/browser/debugger/devtools_file_helper.cc (working copy)
@@ -4,6 +4,8 @@
#include "chrome/browser/debugger/devtools_file_helper.h"
+#include <vector>
+
#include "base/bind.h"
#include "base/callback.h"
#include "base/file_util.h"
@@ -18,8 +20,12 @@
#include "chrome/browser/ui/chrome_select_file_policy.h"
#include "chrome/browser/ui/select_file_dialog.h"
#include "chrome/common/pref_names.h"
+#include "content/public/browser/browser_context.h"
+#include "content/public/browser/download_manager.h"
+using content::BrowserContext;
using content::BrowserThread;
+using content::DownloadManager;
namespace {
@@ -147,8 +153,9 @@
initial_path = g_last_save_path.Pointer()->DirName().AppendASCII(
suggested_file_name);
} else {
- DownloadPrefs prefs(profile_->GetPrefs());
- initial_path = prefs.download_path().AppendASCII(suggested_file_name);
+ FilePath download_path = DownloadPrefs::FromDownloadManager(
+ BrowserContext::GetDownloadManager(profile_))->DownloadPath();
+ initial_path = download_path.AppendASCII(suggested_file_name);
}
}
« no previous file with comments | « chrome/browser/automation/testing_automation_provider.cc ('k') | chrome/browser/download/chrome_download_manager_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698