| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
| 6 | 6 |
| 7 #include "chrome/browser/ui/webui/options2/advanced_options_utils.h" | 7 #include "chrome/browser/ui/webui/options2/advanced_options_utils.h" |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/mac/mac_logging.h" | 10 #include "base/mac/mac_logging.h" |
| 11 #include "base/mac/scoped_aedesc.h" | 11 #include "base/mac/scoped_aedesc.h" |
| 12 | 12 |
| 13 using content::WebContents; | 13 using content::WebContents; |
| 14 | 14 |
| 15 namespace options2 { | 15 namespace options { |
| 16 | 16 |
| 17 void AdvancedOptionsUtilities::ShowNetworkProxySettings( | 17 void AdvancedOptionsUtilities::ShowNetworkProxySettings( |
| 18 WebContents* web_contents) { | 18 WebContents* web_contents) { |
| 19 NSArray* itemsToOpen = [NSArray arrayWithObject:[NSURL fileURLWithPath: | 19 NSArray* itemsToOpen = [NSArray arrayWithObject:[NSURL fileURLWithPath: |
| 20 @"/System/Library/PreferencePanes/Network.prefPane"]]; | 20 @"/System/Library/PreferencePanes/Network.prefPane"]]; |
| 21 | 21 |
| 22 const char* proxyPrefCommand = "Proxies"; | 22 const char* proxyPrefCommand = "Proxies"; |
| 23 base::mac::ScopedAEDesc<> openParams; | 23 base::mac::ScopedAEDesc<> openParams; |
| 24 OSStatus status = AECreateDesc('ptru', | 24 OSStatus status = AECreateDesc('ptru', |
| 25 proxyPrefCommand, | 25 proxyPrefCommand, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 38 void AdvancedOptionsUtilities::ShowManageSSLCertificates( | 38 void AdvancedOptionsUtilities::ShowManageSSLCertificates( |
| 39 WebContents* web_contents) { | 39 WebContents* web_contents) { |
| 40 NSString* const kKeychainBundleId = @"com.apple.keychainaccess"; | 40 NSString* const kKeychainBundleId = @"com.apple.keychainaccess"; |
| 41 [[NSWorkspace sharedWorkspace] | 41 [[NSWorkspace sharedWorkspace] |
| 42 launchAppWithBundleIdentifier:kKeychainBundleId | 42 launchAppWithBundleIdentifier:kKeychainBundleId |
| 43 options:0L | 43 options:0L |
| 44 additionalEventParamDescriptor:nil | 44 additionalEventParamDescriptor:nil |
| 45 launchIdentifier:nil]; | 45 launchIdentifier:nil]; |
| 46 } | 46 } |
| 47 | 47 |
| 48 } // namespace options2 | 48 } // namespace options |
| OLD | NEW |