FreeBSD Bugzilla – Attachment 159130 Details for
Bug 201805
[PATCH] www/chromium: enable native message service API for extensions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for enabling native messaging
2015-07-24_chromium_patch_native_messaging.patch (text/plain), 2.25 KB, created by
Matthias Petermann
on 2015-07-24 04:52:51 UTC
(
hide
)
Description:
Patch for enabling native messaging
Filename:
MIME Type:
Creator:
Matthias Petermann
Created:
2015-07-24 04:52:51 UTC
Size:
2.25 KB
patch
obsolete
>diff -ruN chromium.orig/files/patch-chrome_browser_extensions_api_messaging_message__service.cc chromium/files/patch-chrome_browser_extensions_api_messaging_message__service.cc >--- chromium.orig/files/patch-chrome_browser_extensions_api_messaging_message__service.cc 1970-01-01 01:00:00.000000000 +0100 >+++ chromium/files/patch-chrome_browser_extensions_api_messaging_message__service.cc 2015-07-24 06:31:23.000000000 +0200 >@@ -0,0 +1,35 @@ >+--- chrome/browser/extensions/api/messaging/message_service.cc.orig 2015-07-24 04:25:26 UTC >++++ chrome/browser/extensions/api/messaging/message_service.cc >+@@ -108,7 +108,7 @@ MessageService::PolicyPermission Message >+ >+ const char kReceivingEndDoesntExistError[] = >+ "Could not establish connection. Receiving end does not exist."; >+-#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) >++#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD) >+ const char kMissingPermissionError[] = >+ "Access to native messaging requires nativeMessaging permission."; >+ const char kProhibitedByPoliciesError[] = >+@@ -406,7 +406,7 @@ void MessageService::OpenChannelToNative >+ if (!source) >+ return; >+ >+-#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) >++#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD) >+ Profile* profile = Profile::FromBrowserContext(source->GetBrowserContext()); >+ ExtensionService* extension_service = >+ ExtensionSystem::Get(profile)->extension_service(); >+@@ -467,12 +467,12 @@ void MessageService::OpenChannelToNative >+ channel->opener->IncrementLazyKeepaliveCount(); >+ >+ AddChannel(channel.release(), receiver_port_id); >+-#else // !(defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX)) >++#else // !(defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD)) >+ 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)) >++#endif // !(defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD)) >+ } >+ >+ void MessageService::OpenChannelToTab(
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 201805
:
159130
|
174022