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

Unified Diff: chrome/renderer/chrome_mock_render_thread.cc

Issue 664553007: Cleanup: Put more chrome/ code behind ENABLE_EXTENSIONS ifdefs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: fix android Created 6 years, 2 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
« no previous file with comments | « chrome/renderer/chrome_mock_render_thread.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/chrome_mock_render_thread.cc
diff --git a/chrome/renderer/chrome_mock_render_thread.cc b/chrome/renderer/chrome_mock_render_thread.cc
index 0cb28ab4d1bc7c3fe8f85f57190a291aab337388..637e777c4371265dadc845ca981e9a0d1d34bf0a 100644
--- a/chrome/renderer/chrome_mock_render_thread.cc
+++ b/chrome/renderer/chrome_mock_render_thread.cc
@@ -8,7 +8,6 @@
#include "base/values.h"
#include "chrome/renderer/printing/mock_printer.h"
-#include "extensions/common/extension_messages.h"
#include "ipc/ipc_sync_message.h"
#include "printing/page_range.h"
#include "printing/print_job_constants.h"
@@ -20,6 +19,10 @@
#include "base/files/file_util.h"
#endif
+#if defined(ENABLE_EXTENSIONS)
+#include "extensions/common/extension_messages.h"
+#endif
+
#if defined(ENABLE_PRINTING)
#include "chrome/common/print_messages.h"
#endif
@@ -54,8 +57,10 @@ bool ChromeMockRenderThread::OnMessageReceived(const IPC::Message& msg) {
// Some messages we do special handling.
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(ChromeMockRenderThread, msg)
+#if defined(ENABLE_EXTENSIONS)
IPC_MESSAGE_HANDLER(ExtensionHostMsg_OpenChannelToExtension,
OnOpenChannelToExtension)
+#endif
#if defined(ENABLE_PRINTING)
IPC_MESSAGE_HANDLER(PrintHostMsg_GetDefaultPrintSettings,
OnGetDefaultPrintSettings)
@@ -83,6 +88,7 @@ bool ChromeMockRenderThread::OnMessageReceived(const IPC::Message& msg) {
return handled;
}
+#if defined(ENABLE_EXTENSIONS)
void ChromeMockRenderThread::OnOpenChannelToExtension(
int routing_id,
const ExtensionMsg_ExternalConnectionInfo& info,
@@ -91,6 +97,7 @@ void ChromeMockRenderThread::OnOpenChannelToExtension(
int* port_id) {
*port_id = 0;
}
+#endif
#if defined(ENABLE_PRINTING)
#if defined(OS_CHROMEOS)
« no previous file with comments | « chrome/renderer/chrome_mock_render_thread.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698