From 70948d68e3925e415e29d74230c4c0b39fbf31a4 Mon Sep 17 00:00:00 2001 From: sdefresne Date: Tue, 11 Aug 2015 03:46:35 -0700 Subject: Move ClipboardURLProvider into //components/omnibox. Move ClipboardURLProvider with the other AutocompleteProvider into //components/omnibox to simplify the construction of the provider and break circular dependency of open_from_clipboard and omnibox components. Introduce a new AutocompleteProvider::Type for this new provider (AutocompleteProvider::TYPE_CLIPBOARD_URL) with the corresponding value in OmniboxEventProto enumeration. Pass the AutocompleteProviderClient to the ClipboardURLProvider and remove another layer of indirection for the construction of the AutocompleteMatch. Add AutocompleteProvider::TYPE_CLIPBOARD_URL to the default list of providers and construct, if ClipboardRecentContent singleton exists (currently only implemented on iOS), a ClipboardURLProvider. Add unit tests for ClipboardURLProvider. BUG=517134,517017,514225 Review URL: https://codereview.chromium.org/1273013002 Cr-Commit-Position: refs/heads/master@{#342806} --- components/components.gyp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/components.gyp') diff --git a/components/components.gyp b/components/components.gyp index e618f9c..246ebca 100644 --- a/components/components.gyp +++ b/components/components.gyp @@ -47,6 +47,7 @@ 'offline_pages.gypi', 'omnibox.gypi', 'onc.gypi', + 'open_from_clipboard.gypi', 'os_crypt.gypi', 'ownership.gypi', 'packed_ct_ev_whitelist.gypi', @@ -110,7 +111,6 @@ }], ['OS == "ios"', { 'includes': [ - 'open_from_clipboard.gypi', 'webp_transcode.gypi', ], }], -- cgit v1.1