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

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

Issue 2619603002: Remove android_java_ui as it is not used (Closed)
Patch Set: Rebase to master Created 3 years, 11 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/download/download_path_reservation_tracker.cc
diff --git a/chrome/browser/download/download_path_reservation_tracker.cc b/chrome/browser/download/download_path_reservation_tracker.cc
index 5add5db260d8d1ee327d6859145ec52a36c7225b..cb813a5bdeb1cc35eb96ddf1b6fda19993247dd1 100644
--- a/chrome/browser/download/download_path_reservation_tracker.cc
+++ b/chrome/browser/download/download_path_reservation_tracker.cc
@@ -203,7 +203,7 @@ bool CreateReservation(
// to the user's "My Documents" directory. We'll prompt them in this case.
if (!base::PathIsWritable(target_dir)) {
DVLOG(1) << "Unable to write to directory \"" << target_dir.value() << "\"";
-#if BUILDFLAG(ANDROID_JAVA_UI)
+#if defined(OS_ANDROID)
// On Android, DIR_USER_DOCUMENTS is in reality a subdirectory
// of DIR_ANDROID_APP_DATA which isn't accessible by other apps.
reserved_path->clear();
@@ -213,7 +213,7 @@ bool CreateReservation(
is_path_writeable = false;
PathService::Get(chrome::DIR_USER_DOCUMENTS, &target_dir);
target_path = target_dir.Append(filename);
-#endif // BUILDFLAG(ANDROID_JAVA_UI)
+#endif // defined(OS_ANDROID)
}
if (is_path_writeable) {

Powered by Google App Engine
This is Rietveld 408576698