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

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

Issue 1459793002: Android: Allow compiling browser without Java UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 238bcbd42b6e825bec53b20f9d3131e98accbda6..5079e96b3088ae22b8fe0d64cf854b77e7afd0d8 100644
--- a/chrome/browser/download/download_request_limiter.cc
+++ b/chrome/browser/download/download_request_limiter.cc
@@ -24,7 +24,7 @@
#include "content/public/browser/web_contents_delegate.h"
#include "url/gurl.h"
-#if defined(OS_ANDROID)
+#if defined(ANDROID_JAVA_UI)
Ted C 2015/11/30 19:39:05 I think there will need a broader discussion of wh
#include "chrome/browser/download/download_request_infobar_delegate_android.h"
#else
#include "chrome/browser/download/download_permission_request.h"
@@ -99,7 +99,7 @@ void DownloadRequestLimiter::TabDownloadState::DidGetUserGesture() {
return;
}
-#if defined(OS_ANDROID)
+#if defined(ANDROID_JAVA_UI)
bool promptable = InfoBarService::FromWebContents(web_contents()) != nullptr;
#else
bool promptable =
@@ -133,7 +133,7 @@ void DownloadRequestLimiter::TabDownloadState::PromptUserForDownload(
if (is_showing_prompt())
return;
-#if defined(OS_ANDROID)
+#if defined(ANDROID_JAVA_UI)
DownloadRequestInfoBarDelegateAndroid::Create(
InfoBarService::FromWebContents(web_contents_), factory_.GetWeakPtr());
#else

Powered by Google App Engine
This is Rietveld 408576698