Index: chrome/browser/dom_distiller/profile_utils.cc |
diff --git a/chrome/browser/dom_distiller/profile_utils.cc b/chrome/browser/dom_distiller/profile_utils.cc |
index 3eab2bba7a478fd356c9ecacc3665d4d6e161693..c10490c5dbf1a05586596d37a03055474983ec24 100644 |
--- a/chrome/browser/dom_distiller/profile_utils.cc |
+++ b/chrome/browser/dom_distiller/profile_utils.cc |
@@ -21,9 +21,9 @@ |
#include "chrome/browser/ui/webui/print_preview/print_preview_distiller.h" |
#endif // defined(ENABLE_PRINT_PREVIEW) |
-#if defined(OS_ANDROID) |
+#if defined(ANDROID_JAVA_UI) |
#include "chrome/browser/android/dom_distiller/distiller_ui_handle_android.h" |
-#endif // defined(OS_ANDROID) |
+#endif // defined(ANDROID_JAVA_UI) |
void RegisterDomDistillerViewerSource(Profile* profile) { |
bool enabled_distiller = base::CommandLine::ForCurrentProcess()->HasSwitch( |
@@ -42,10 +42,10 @@ void RegisterDomDistillerViewerSource(Profile* profile) { |
profile, dom_distiller_service_factory); |
scoped_ptr<dom_distiller::DistillerUIHandle> ui_handle; |
-#if defined(OS_ANDROID) |
+#if defined(ANDROID_JAVA_UI) |
ui_handle.reset( |
new dom_distiller::android::DistillerUIHandleAndroid()); |
-#endif // defined(OS_ANDROID) |
+#endif // defined(ANDROID_JAVA_UI) |
// Set the JavaScript world ID. |
if (!dom_distiller::DistillerJavaScriptWorldIdIsSet()) { |