Index: chrome/browser/download/download_util.cc |
diff --git a/chrome/browser/download/download_util.cc b/chrome/browser/download/download_util.cc |
index f4fe085205cf915a76b4d13012c22ddb586dbe70..10f20455dbc82fe18be6bf1cfe490af1f61912e0 100644 |
--- a/chrome/browser/download/download_util.cc |
+++ b/chrome/browser/download/download_util.cc |
@@ -166,12 +166,17 @@ bool DownloadPathIsDangerous(const FilePath& download_path) { |
} |
#endif |
+#if defined(OS_ANDROID) |
+ // Android does not have a desktop dir. |
+ return false; |
+#else |
FilePath desktop_dir; |
if (!PathService::Get(chrome::DIR_USER_DESKTOP, &desktop_dir)) { |
NOTREACHED(); |
return false; |
} |
return (download_path == desktop_dir); |
+#endif |
} |
// Download progress painting -------------------------------------------------- |