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

Unified Diff: chrome/utility/chrome_content_utility_ipc_whitelist.cc

Issue 345693002: Extensions: Split extensions utility IPC messages into its own file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: disable another test Created 6 years, 6 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/utility/chrome_content_utility_client.cc ('k') | chrome/utility/extensions/extensions_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/chrome_content_utility_ipc_whitelist.cc
diff --git a/chrome/utility/chrome_content_utility_ipc_whitelist.cc b/chrome/utility/chrome_content_utility_ipc_whitelist.cc
index c831d178da08ab6a89a417f628312a4839595d46..25c572e42d187e2cc91ed4b65fdb2ab7c44cae6a 100644
--- a/chrome/utility/chrome_content_utility_ipc_whitelist.cc
+++ b/chrome/utility/chrome_content_utility_ipc_whitelist.cc
@@ -3,14 +3,20 @@
// found in the LICENSE file.
#include "chrome/utility/chrome_content_utility_ipc_whitelist.h"
-#include "chrome/common/chrome_utility_messages.h"
+
+#if defined(ENABLE_EXTENSIONS)
+#include "chrome/common/extensions/chrome_utility_extensions_messages.h"
+#endif
const uint32 kMessageWhitelist[] = {
-#ifdef OS_WIN
+#if defined(ENABLE_EXTENSIONS)
+#if defined(OS_WIN)
ChromeUtilityHostMsg_GetAndEncryptWiFiCredentials::ID,
-#endif // OS_WIN
+#endif // defined(OS_WIN)
ChromeUtilityMsg_ImageWriter_Cancel::ID,
ChromeUtilityMsg_ImageWriter_Write::ID,
- ChromeUtilityMsg_ImageWriter_Verify::ID};
+ ChromeUtilityMsg_ImageWriter_Verify::ID
+#endif // defined(ENABLE_EXTENSIONS)
+};
-const size_t kMessageWhitelistSize = arraysize(kMessageWhitelist);
+const size_t kMessageWhitelistSize = ARRAYSIZE_UNSAFE(kMessageWhitelist);
« no previous file with comments | « chrome/utility/chrome_content_utility_client.cc ('k') | chrome/utility/extensions/extensions_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698