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

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: rebase 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
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..9b8014073b27146fbe08e222999d39f1b05b73a5 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
Yoyo Zhou 2014/06/25 01:17:50 keep the // comment for clarity
Lei Zhang 2014/06/25 07:14:29 Done.
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);

Powered by Google App Engine
This is Rietveld 408576698