Index: ios/chrome/browser/open_url_util.h |
diff --git a/ios/chrome/browser/open_url_util.h b/ios/chrome/browser/open_url_util.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..43b59d95faad66ce8cd4b496919aa4c00e758145 |
--- /dev/null |
+++ b/ios/chrome/browser/open_url_util.h |
@@ -0,0 +1,15 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef IOS_CHROME_BROWSER_OPEN_URL_UTIL_H_ |
+#define IOS_CHROME_BROWSER_OPEN_URL_UTIL_H_ |
+ |
+#import <Foundation/Foundation.h> |
+ |
+// Wrapper method for UIApplication openURL() that uses |
+// the non-deprecated method when it is available (iOS10+). |
+void OpenURLWithCompletionHandler(NSURL* url, |
Eugene But (OOO till 7-30)
2016/09/14 20:20:07
Per comment in downstream CL:
s/OpenURLWithComple
sczs
2016/09/15 20:35:47
Done.
|
+ void (^completion_handler)(BOOL success)); |
+ |
+#endif // IOS_CHROME_BROWSER_OPEN_URL_UTIL_H_ |