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

Unified Diff: chrome/browser/ui/cocoa/applescript/error_applescript.mm

Issue 2836063006: Update the "Execute Javascript" AppleScript error (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/applescript/error_applescript.mm
diff --git a/chrome/browser/ui/cocoa/applescript/error_applescript.mm b/chrome/browser/ui/cocoa/applescript/error_applescript.mm
index c261c8bc13100acdb249c43545c95c7033bd168e..3345a40a93b71ce149535820a18dd4b5447d79a7 100644
--- a/chrome/browser/ui/cocoa/applescript/error_applescript.mm
+++ b/chrome/browser/ui/cocoa/applescript/error_applescript.mm
@@ -8,6 +8,11 @@
#include "chrome/grit/generated_resources.h"
#include "ui/base/l10n/l10n_util_mac.h"
+namespace {
+NSString* kJavaScriptUnsupportedUrlString =
+ @"\n\nhttps://support.google.com/chrome/?p=applescript";
+}
+
void AppleScript::SetError(AppleScript::ErrorCode errorCode) {
using l10n_util::GetNSString;
NSScriptCommand* current_command = [NSScriptCommand currentCommand];
@@ -52,6 +57,8 @@ void AppleScript::SetError(AppleScript::ErrorCode errorCode) {
case errJavaScriptUnsupported:
error_string =
GetNSString(IDS_JAVASCRIPT_UNSUPPORTED_ERROR_APPLESCRIPT_MAC);
+ error_string = [error_string
+ stringByAppendingString:kJavaScriptUnsupportedUrlString];
break;
default:
NOTREACHED();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698