      -seealso: `presentViewController(_:fromSourceItem:inViewController:animated:completion)`.
     */
     public func openURL(url:NSURL, fromSourceItem item:UIPopoverSourceType, inViewController:UIViewController? = nil) {
-        
-        #if TD_APP_EXTENSION
-            
-            openInSafari(url)
-            
-        #else
-            
-            if let chromeURL = url.googleChromeURL() where UIApplication.sharedApplication().canOpenURL(NSURL(string: "googlechrome://")!) {
+
+            
+            if let chromeURL = url.googleChromeURL() where canOpenURL(NSURL(string: "googlechrome://")!) {
                 
                 let alert = UIAlertController(title: nil, message: "Open with...", preferredStyle: UIAlertControllerStyle.ActionSheet)
                 


import SafariServices

public extension UIViewController {
    
    

    */
    public func openInSafari(url:NSURL) {
        
        if #available(iOS 9, *) {
            let vc = SFSafariViewController(URL: url)
            vc.delegate = self
            self.presentViewController(vc, animated: true, completion: nil)
            return
        }
        
        #if TD_APP_EXTENSION
        
            openURLUsingResponder(url)
            
        #else
            if UIApplication.sharedApplication().canOpenURL(url) {
                UIApplication.sharedApplication().openURL(url)
            }
        #endif
    }
    
