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

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

Issue 2619603002: Remove android_java_ui as it is not used (Closed)
Patch Set: 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_request_limiter.cc
diff --git a/chrome/browser/download/download_request_limiter.cc b/chrome/browser/download/download_request_limiter.cc
index 85c47e992e93e1f80006e169b56a6133392eb54b..8077aeaa5c9db924a4b1af70bd2c7616500fe37d 100644
--- a/chrome/browser/download/download_request_limiter.cc
+++ b/chrome/browser/download/download_request_limiter.cc
@@ -27,7 +27,7 @@
#include "content/public/browser/web_contents_delegate.h"
#include "url/gurl.h"
-#if BUILDFLAG(ANDROID_JAVA_UI)
+#if defined(OS_ANDROID)
#include "chrome/browser/download/download_request_infobar_delegate_android.h"
#else
#include "chrome/browser/download/download_permission_request.h"
@@ -131,7 +131,7 @@ void DownloadRequestLimiter::TabDownloadState::DidGetUserInteraction(
return;
}
-#if BUILDFLAG(ANDROID_JAVA_UI)
+#if defined(OS_ANDROID)
bool promptable = InfoBarService::FromWebContents(web_contents()) != nullptr;
#else
bool promptable =
@@ -165,7 +165,7 @@ void DownloadRequestLimiter::TabDownloadState::PromptUserForDownload(
if (is_showing_prompt())
return;
-#if BUILDFLAG(ANDROID_JAVA_UI)
+#if defined(OS_ANDROID)
DownloadRequestInfoBarDelegateAndroid::Create(
InfoBarService::FromWebContents(web_contents_), factory_.GetWeakPtr());
#else

Powered by Google App Engine
This is Rietveld 408576698