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

Side by Side Diff: chrome/browser/ui/cocoa/applescript/error_applescript.mm

Issue 2477633003: [Mac] Add a feature flag to disable Javascript execution in Applescript (Closed)
Patch Set: nit Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "chrome/browser/ui/cocoa/applescript/error_applescript.h" 5 #import "chrome/browser/ui/cocoa/applescript/error_applescript.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/grit/generated_resources.h" 8 #include "chrome/grit/generated_resources.h"
9 #include "ui/base/l10n/l10n_util_mac.h" 9 #include "ui/base/l10n/l10n_util_mac.h"
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 break; 42 break;
43 case errInvalidTabIndex: 43 case errInvalidTabIndex:
44 error_string = GetNSString(IDS_INVALID_TAB_INDEX_APPLESCRIPT_MAC); 44 error_string = GetNSString(IDS_INVALID_TAB_INDEX_APPLESCRIPT_MAC);
45 break; 45 break;
46 case errSetMode: 46 case errSetMode:
47 error_string = GetNSString(IDS_SET_MODE_APPLESCRIPT_MAC); 47 error_string = GetNSString(IDS_SET_MODE_APPLESCRIPT_MAC);
48 break; 48 break;
49 case errWrongIndex: 49 case errWrongIndex:
50 error_string = GetNSString(IDS_WRONG_INDEX_ERROR_APPLESCRIPT_MAC); 50 error_string = GetNSString(IDS_WRONG_INDEX_ERROR_APPLESCRIPT_MAC);
51 break; 51 break;
52 case errJavaScriptUnsupported:
53 error_string =
54 GetNSString(IDS_JAVASCRIPT_UNSUPPORTED_ERROR_APPLESCRIPT_MAC);
55 break;
52 default: 56 default:
53 NOTREACHED(); 57 NOTREACHED();
54 } 58 }
55 [current_command setScriptErrorString:error_string]; 59 [current_command setScriptErrorString:error_string];
56 } 60 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/applescript/error_applescript.h ('k') | chrome/browser/ui/cocoa/applescript/tab_applescript.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698