Index: chrome/browser/ui/webui/memory_internals/memory_internals_proxy.cc |
diff --git a/chrome/browser/ui/webui/memory_internals/memory_internals_proxy.cc b/chrome/browser/ui/webui/memory_internals/memory_internals_proxy.cc |
index 7394c2c1443df980edf0933e58229a75a9514a41..2e549f04a21b814f9c7cc20ae736ca9c3a1954e3 100644 |
--- a/chrome/browser/ui/webui/memory_internals/memory_internals_proxy.cc |
+++ b/chrome/browser/ui/webui/memory_internals/memory_internals_proxy.cc |
@@ -17,7 +17,6 @@ |
#include "chrome/browser/memory_details.h" |
#include "chrome/browser/prerender/prerender_manager.h" |
#include "chrome/browser/prerender/prerender_manager_factory.h" |
-#include "chrome/browser/printing/background_printing_manager.h" |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/profiles/profile_manager.h" |
#include "chrome/browser/renderer_host/chrome_render_message_filter.h" |
@@ -41,6 +40,10 @@ |
#include "content/public/browser/web_contents.h" |
#include "content/public/browser/web_ui.h" |
+#if defined(ENABLE_FULL_PRINTING) |
+#include "chrome/browser/printing/background_printing_manager.h" |
+#endif |
+ |
using content::BrowserThread; |
class Profile; |
@@ -114,7 +117,7 @@ void GetAllWebContents(std::set<content::WebContents*>* web_contents) { |
if (instant_service && instant_service->GetNTPContents()) |
web_contents->insert(instant_service->GetNTPContents()); |
} |
-#if !defined(OS_ANDROID) |
+#if defined(ENABLE_FULL_PRINTING) |
// Add all the pages being background printed. |
printing::BackgroundPrintingManager* printing_manager = |
g_browser_process->background_printing_manager(); |