Refactor ClipboardRecentContent singleton creation.
commitd369f9805ca82ca90b6b618b45ccc4af27d574a6
authorsdefresne <sdefresne@chromium.org>
Thu, 6 Aug 2015 12:56:40 +0000 (6 05:56 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 6 Aug 2015 12:57:19 +0000 (6 12:57 +0000)
tree3f18702952c7a5a1fa9a49b0e3f6236fe39fa547
parent36c7cd2265115413fa49e8e97354c8f7e749a22c
Refactor ClipboardRecentContent singleton creation.

Move the initialization of the ClipboardRecentContent from the component
to the embedder since embedder specific information is required
(only the application scheme currently, but more embedder
specific information will soon be required).

Add an helper method to create a ClipboadRecentContentIOS instance from
a C++ file (ClipboardRecentContentIOS is defined in an Objective-C++
header). The instance returned is fully initialized and can be registered
as the singleton instance.

BUG=517017

Review URL: https://codereview.chromium.org/1274713003

Cr-Commit-Position: refs/heads/master@{#342102}
components/open_from_clipboard.gypi
components/open_from_clipboard/clipboard_recent_content.cc [new file with mode: 0644]
components/open_from_clipboard/clipboard_recent_content.h
components/open_from_clipboard/clipboard_recent_content_ios.h
components/open_from_clipboard/clipboard_recent_content_ios.mm
components/open_from_clipboard/clipboard_recent_content_ios_unittest.mm
ios/chrome/browser/DEPS
ios/chrome/browser/open_from_clipboard/create_clipboard_recent_content.h [new file with mode: 0644]
ios/chrome/browser/open_from_clipboard/create_clipboard_recent_content.mm [new file with mode: 0644]
ios/chrome/ios_chrome.gyp