Index: chrome/browser/download/download_target_determiner_unittest.cc |
diff --git a/chrome/browser/download/download_target_determiner_unittest.cc b/chrome/browser/download/download_target_determiner_unittest.cc |
index dac46c7e92521638b67486358ab2b64b841d54df..7c15435108d18ab28040d2981bffaf9ff942ea55 100644 |
--- a/chrome/browser/download/download_target_determiner_unittest.cc |
+++ b/chrome/browser/download/download_target_determiner_unittest.cc |
@@ -31,7 +31,6 @@ |
#include "content/public/test/mock_download_item.h" |
#include "content/public/test/test_renderer_host.h" |
#include "content/public/test/web_contents_tester.h" |
-#include "extensions/common/extension.h" |
#include "net/base/mime_util.h" |
#include "testing/gmock/include/gmock/gmock.h" |
#include "testing/gtest/include/gtest/gtest.h" |
@@ -42,6 +41,10 @@ |
#include "content/public/common/webplugininfo.h" |
#endif |
+#if defined(ENABLE_EXTENSIONS) |
+#include "extensions/common/extension.h" |
+#endif |
+ |
using ::testing::AnyNumber; |
using ::testing::Invoke; |
using ::testing::Ref; |
@@ -1147,7 +1150,7 @@ TEST_F(DownloadTargetDeterminerTest, TargetDeterminer_PromptAlways) { |
arraysize(kPromptingTestCases)); |
} |
-#if !defined(OS_ANDROID) |
+#if defined(ENABLE_EXTENSIONS) |
// These test cases are run with "Prompt for download" user preference set to |
// true. Automatic extension downloads shouldn't cause prompting. |
// Android doesn't support extensions. |
@@ -1204,7 +1207,7 @@ TEST_F(DownloadTargetDeterminerTest, TargetDeterminer_PromptAlways_Extension) { |
RunTestCasesWithActiveItem(kPromptingTestCases, |
arraysize(kPromptingTestCases)); |
} |
-#endif |
+#endif // defined(ENABLE_EXTENSIONS) |
// If the download path is managed, then we don't show any prompts. |
// Note that if the download path is managed, then PromptForDownload() is false. |