OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "ios/chrome/browser/open_from_clipboard/create_clipboard_recent_content
.h" | 5 #include "ios/chrome/browser/open_from_clipboard/create_clipboard_recent_content
.h" |
6 | 6 |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #import "components/open_from_clipboard/clipboard_recent_content_ios.h" | 8 #import "components/open_from_clipboard/clipboard_recent_content_ios.h" |
9 #include "ios/chrome/browser/chrome_url_constants.h" | 9 #include "ios/chrome/browser/chrome_url_constants.h" |
10 #include "ios/chrome/common/app_group/app_group_constants.h" | 10 #include "ios/chrome/common/app_group/app_group_constants.h" |
11 | 11 |
| 12 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 13 #error "This file requires ARC support." |
| 14 #endif |
| 15 |
12 std::unique_ptr<ClipboardRecentContent> CreateClipboardRecentContentIOS() { | 16 std::unique_ptr<ClipboardRecentContent> CreateClipboardRecentContentIOS() { |
13 return base::MakeUnique<ClipboardRecentContentIOS>( | 17 return base::MakeUnique<ClipboardRecentContentIOS>( |
14 kChromeUIScheme, app_group::GetGroupUserDefaults()); | 18 kChromeUIScheme, app_group::GetGroupUserDefaults()); |
15 } | 19 } |
OLD | NEW |