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

Unified Diff: chrome/browser/download/download_prefs.cc

Issue 2394303003: Don't prompt for download location on Android (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_prefs.cc
diff --git a/chrome/browser/download/download_prefs.cc b/chrome/browser/download/download_prefs.cc
index 1b85c84815062268c99020f1db0d395cd386a21e..635e5567b2dc18775f2ee5e522f5956f584c834d 100644
--- a/chrome/browser/download/download_prefs.cc
+++ b/chrome/browser/download/download_prefs.cc
@@ -156,7 +156,12 @@ DownloadPrefs::DownloadPrefs(Profile* profile) : profile_(profile) {
prefs->SetBoolean(prefs::kDownloadDirUpgraded, true);
}
+// Ignore "Always prompt for download location" preference on Android.
+#if defined(OS_ANDROID)
+ prompt_for_download_.SetValue(false);
asanka 2016/10/07 16:10:18 I don't think we can set the pref without initiali
qinmin 2016/10/07 16:25:14 Good catch. Switched to always return false in Dow
+#else
prompt_for_download_.Init(prefs::kPromptForDownload, prefs);
+#endif
download_path_.Init(prefs::kDownloadDefaultDirectory, prefs);
save_file_path_.Init(prefs::kSaveFileDefaultDirectory, prefs);
save_file_type_.Init(prefs::kSaveFileType, prefs);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698