blob: 7f660e9b6953d789a0b45eb4b09bc0984bd23a09 [file] [log] [blame]
sczs712e4072016-09-17 00:10:051// 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+).
12void OpenUrlWithCompletionHandler(NSURL* url,
13 void (^completion_handler)(BOOL success));
14
15#endif // IOS_CHROME_BROWSER_OPEN_URL_UTIL_H_