| Index: chrome/browser/extensions/api/messaging/message_service.cc
|
| diff --git a/chrome/browser/extensions/api/messaging/message_service.cc b/chrome/browser/extensions/api/messaging/message_service.cc
|
| index d4b82b60fb9e8516f32d0ca655967422a9af3b10..cd29d9805181528bc514ad6e24888fa75d0aed98 100644
|
| --- a/chrome/browser/extensions/api/messaging/message_service.cc
|
| +++ b/chrome/browser/extensions/api/messaging/message_service.cc
|
| @@ -58,14 +58,10 @@ using content::WebContents;
|
|
|
| namespace extensions {
|
|
|
| -namespace {
|
| const char kReceivingEndDoesntExistError[] =
|
| "Could not establish connection. Receiving end does not exist.";
|
| const char kMissingPermissionError[] =
|
| "Access to native messaging requires nativeMessaging permission.";
|
| -const char kNativeMessagingNotSupportedError[] =
|
| - "Native Messaging is not supported on this platform.";
|
| -}
|
|
|
| struct MessageService::MessageChannel {
|
| scoped_ptr<MessagePort> opener;
|
| @@ -358,6 +354,8 @@ void MessageService::OpenChannelToNativeApp(
|
|
|
| AddChannel(channel.release(), receiver_port_id);
|
| #else // !(defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX))
|
| + const char kNativeMessagingNotSupportedError[] =
|
| + "Native Messaging is not supported on this platform.";
|
| DispatchOnDisconnect(
|
| source, receiver_port_id, kNativeMessagingNotSupportedError);
|
| #endif // !(defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX))
|
|
|