Commit 327d8005 authored by Devlin Cronin's avatar Devlin Cronin Committed by Commit Bot

[Extensions Cleanup] Remove unnecessary typedef in extension_messages.h

extension_messages.h included a typedef for SubstitutionMap, which
mimicked MessageBundle::SubstitutionMap (each a
std::map<std::string, std::string>). Instead, just include
message_bundle.h in extension_messages.h, and remove the extra typedef.

Bug: None
Change-Id: I1a076b7dd8f45f774296dcf2cd64fa3ea2960356
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2528092
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Auto-Submit: Devlin <rdevlin.cronin@chromium.org>
Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#825956}
parent 83eade29
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include "extensions/common/extension.h" #include "extensions/common/extension.h"
#include "extensions/common/extensions_client.h" #include "extensions/common/extensions_client.h"
#include "extensions/common/host_id.h" #include "extensions/common/host_id.h"
#include "extensions/common/message_bundle.h"
#include "extensions/common/permissions/permission_set.h" #include "extensions/common/permissions/permission_set.h"
#include "extensions/common/permissions/socket_permission_data.h" #include "extensions/common/permissions/socket_permission_data.h"
#include "extensions/common/permissions/usb_device_permission_data.h" #include "extensions/common/permissions/usb_device_permission_data.h"
...@@ -329,11 +330,6 @@ IPC_STRUCT_END() ...@@ -329,11 +330,6 @@ IPC_STRUCT_END()
#ifndef INTERNAL_EXTENSIONS_COMMON_EXTENSION_MESSAGES_H_ #ifndef INTERNAL_EXTENSIONS_COMMON_EXTENSION_MESSAGES_H_
#define INTERNAL_EXTENSIONS_COMMON_EXTENSION_MESSAGES_H_ #define INTERNAL_EXTENSIONS_COMMON_EXTENSION_MESSAGES_H_
// IPC_MESSAGE macros choke on extra , in the std::map, when expanding. We need
// to typedef it to avoid that.
// Substitution map for l10n messages.
typedef std::map<std::string, std::string> SubstitutionMap;
// Map of extensions IDs to the executing script paths. // Map of extensions IDs to the executing script paths.
typedef std::map<std::string, std::set<std::string> > ExecutingScriptsMap; typedef std::map<std::string, std::set<std::string> > ExecutingScriptsMap;
...@@ -863,9 +859,10 @@ IPC_MESSAGE_CONTROL2(ExtensionHostMsg_PostMessage, ...@@ -863,9 +859,10 @@ IPC_MESSAGE_CONTROL2(ExtensionHostMsg_PostMessage,
extensions::Message) extensions::Message)
// Used to get the extension message bundle. // Used to get the extension message bundle.
IPC_SYNC_MESSAGE_CONTROL1_1(ExtensionHostMsg_GetMessageBundle, IPC_SYNC_MESSAGE_CONTROL1_1(
std::string /* extension id */, ExtensionHostMsg_GetMessageBundle,
SubstitutionMap /* message bundle */) std::string /* extension id */,
extensions::MessageBundle::SubstitutionMap /* message bundle */)
// Sent from the renderer to the browser to return the script running result. // Sent from the renderer to the browser to return the script running result.
IPC_MESSAGE_ROUTED4( IPC_MESSAGE_ROUTED4(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment