sczs | 712e407 | 2016-09-17 00:10:05 | [diff] [blame] | 1 | // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef IOS_CHROME_BROWSER_OPEN_URL_UTIL_H_ |
| 6 | #define IOS_CHROME_BROWSER_OPEN_URL_UTIL_H_ |
| 7 | |
| 8 | #import <Foundation/Foundation.h> |
| 9 | |
| 10 | // Wrapper method for UIApplication openURL() that uses |
| 11 | // the non-deprecated method when it is available (iOS10+). |
| 12 | void OpenUrlWithCompletionHandler(NSURL* url, |
| 13 | void (^completion_handler)(BOOL success)); |
| 14 | |
| 15 | #endif // IOS_CHROME_BROWSER_OPEN_URL_UTIL_H_ |