Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(768)

Issue 1260033003: Partially componentize //chrome/browser/search/search.{h,cc} (Closed)

Created:
5 years, 4 months ago by sdefresne
Modified:
5 years, 4 months ago
Reviewers:
droger, benwells, sky, Jered, blundell
CC:
blundell+watchlist_chromium.org, browser-components-watch_chromium.org, cbentzel+watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, davidben+watch_chromium.org, David Black, dhollowa+watch_chromium.org, donnd+watch_chromium.org, dougw+watch_chromium.org, droger+watchlist_chromium.org, extensions-reviews_chromium.org, gavinp+prer_chromium.org, jfweitz+watch_chromium.org, kmadhusu+watch_chromium.org, melevin+watch_chromium.org, Matt Giuca, noyau+watch_chromium.org, samarth+watch_chromium.org, sdefresne+watch_chromium.org, sdefresne+watchlist_chromium.org, skanuj+watch_chromium.org, James Su, tapted, tburkard+watch_chromium.org, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Partially componentize //chrome/browser/search/search.{h,cc} Move functions from //chrome/browser/search/search.{h,cc} to the search component //components/search/search.{h,cc} so that they can be shared with iOS. Move all the code in those two files (and supporting unittests) from the "chrome" to the "search" namespace. Move unittests that do not depends on non-componentized functions into the search component. Implements GetSearchTerms() on iOS that uses a web::WebState* instead of content::WebContents and simplify the code to remove unsupported features. Directly use //components/search on iOS instead of the SearchProvider when possible. BUG=514239 TBR=sky,droger,benwells Committed: https://crrev.com/51bbec7be7014d4d75d39c1a5c27b1ba9ddc3dcd Cr-Commit-Position: refs/heads/master@{#341525}

Patch Set 1 : Rebase #

Patch Set 2 : Rebase #

Patch Set 3 : Rebase #

Total comments: 6

Patch Set 4 : Rebase #

Patch Set 5 : Fix compilation on iOS #

Unified diffs Side-by-side diffs Delta from patch set Stats (+707 lines, -737 lines) Patch
M chrome/browser/android/omnibox/autocomplete_controller_android.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/android/tab_android.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 5 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/extensions/api/sessions/sessions_api.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_url_rewrite_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/favicon/favicon_utils.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/prerender/prerender_manager.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/renderer_context_menu/render_view_context_menu.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/search/instant_service.cc View 4 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/search/instant_service_factory.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/search/instant_unittest_base.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/search/local_ntp_source.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/search/search.h View 5 chunks +2 lines, -43 lines 0 comments Download
M chrome/browser/search/search.cc View 1 2 3 13 chunks +10 lines, -116 lines 0 comments Download
D chrome/browser/search/search_android_unittest.cc View 1 chunk +0 lines, -110 lines 0 comments Download
M chrome/browser/search/search_unittest.cc View 13 chunks +23 lines, -150 lines 0 comments Download
M chrome/browser/search_engines/ui_thread_search_terms_data.cc View 2 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/sessions/session_restore.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/thumbnails/thumbnail_service_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/app_list/search/common/webservice_search_provider.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/bookmarks/bookmark_tab_helper.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/bookmarks/bookmark_utils.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/browser.cc View 5 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/browser_browsertest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser_instant_controller.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/browser_instant_controller_unittest.cc View 2 chunks +8 lines, -10 lines 0 comments Download
M chrome/browser/ui/extensions/extension_install_ui_default.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/omnibox/chrome_omnibox_client.cc View 1 2 3 4 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/search/instant_controller.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/search/instant_extended_interactive_uitest.cc View 4 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/search/instant_extended_manual_interactive_uitest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/search/instant_search_prerenderer.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/search/instant_search_prerenderer_unittest.cc View 2 chunks +10 lines, -9 lines 0 comments Download
M chrome/browser/ui/search/local_ntp_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/search/new_tab_page_interceptor_service.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/search/search_ipc_router.cc View 3 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/ui/search/search_ipc_router_policy_impl.cc View 2 chunks +12 lines, -12 lines 0 comments Download
M chrome/browser/ui/search/search_ipc_router_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/search/search_model.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/search/search_tab_helper.cc View 13 chunks +16 lines, -16 lines 0 comments Download
M chrome/browser/ui/search/search_tab_helper_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/singleton_tabs.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/toolbar/toolbar_model_impl.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/toolbar/toolbar_model_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/toolbar/toolbar_model_unittest.cc View 1 2 3 7 chunks +9 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/history_ui.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 2 chunks +0 lines, -7 lines 0 comments Download
M chrome/renderer/searchbox/search_bouncer.h View 1 chunk +1 line, -1 line 0 comments Download
M components/omnibox/browser/omnibox_field_trial.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/omnibox/browser/omnibox_field_trial_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/omnibox/browser/search_provider.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/search.gypi View 1 chunk +4 lines, -1 line 0 comments Download
M components/search/BUILD.gn View 1 chunk +3 lines, -0 lines 0 comments Download
M components/search/DEPS View 1 chunk +2 lines, -0 lines 0 comments Download
M components/search/search.h View 2 chunks +55 lines, -2 lines 0 comments Download
M components/search/search.cc View 3 chunks +112 lines, -2 lines 0 comments Download
M components/search/search_android_unittest.cc View 2 chunks +86 lines, -1 line 0 comments Download
M components/search/search_switches.h View 1 chunk +5 lines, -0 lines 0 comments Download
M components/search/search_switches.cc View 1 chunk +11 lines, -0 lines 0 comments Download
M components/search/search_unittest.cc View 2 chunks +108 lines, -2 lines 0 comments Download
M extensions/browser/guest_view/web_view/web_view_guest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A ios/chrome/browser/search/search_util.h View 1 chunk +42 lines, -0 lines 0 comments Download
A ios/chrome/browser/search/search_util.cc View 1 chunk +69 lines, -0 lines 0 comments Download
M ios/chrome/browser/search_engines/ui_thread_search_terms_data.cc View 1 2 3 4 3 chunks +8 lines, -16 lines 0 comments Download
M ios/chrome/ios_chrome.gyp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ios/ios_tests.gyp View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M ios/provider/ios_provider_chrome.gyp View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M ios/public/provider/chrome/browser/chrome_browser_provider.h View 1 2 3 2 chunks +0 lines, -3 lines 0 comments Download
M ios/public/provider/chrome/browser/chrome_browser_provider.cc View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
D ios/public/provider/chrome/browser/search_provider.h View 1 2 3 1 chunk +0 lines, -50 lines 0 comments Download
D ios/public/test/fake_search_provider.h View 1 2 3 1 chunk +0 lines, -29 lines 0 comments Download
D ios/public/test/fake_search_provider.cc View 1 2 3 1 chunk +0 lines, -31 lines 0 comments Download
M ios/public/test/test_chrome_browser_provider.h View 1 2 3 2 chunks +0 lines, -3 lines 0 comments Download
M ios/public/test/test_chrome_browser_provider.mm View 1 2 3 3 chunks +1 line, -7 lines 0 comments Download

Messages

Total messages: 22 (8 generated)
sdefresne
blundell: please take a look at //ios samarth: please take a look at //chrome/browser/search & ...
5 years, 4 months ago (2015-07-29 11:34:31 UTC) #5
blundell
LGTM
5 years, 4 months ago (2015-07-29 12:53:40 UTC) #6
sdefresne
samarth: ping
5 years, 4 months ago (2015-07-30 08:07:51 UTC) #7
sdefresne
jered: can you take a look as //chrome/browser/search OWNERS?
5 years, 4 months ago (2015-07-31 07:46:32 UTC) #9
Jered
On 2015/07/31 07:46:32, sdefresne wrote: > jered: can you take a look as //chrome/browser/search OWNERS? ...
5 years, 4 months ago (2015-07-31 14:00:33 UTC) #10
sdefresne
On 2015/07/31 at 14:00:33, jered wrote: > On 2015/07/31 07:46:32, sdefresne wrote: > > jered: ...
5 years, 4 months ago (2015-07-31 14:47:42 UTC) #11
Jered
https://codereview.chromium.org/1260033003/diff/90001/components/search/search.cc File components/search/search.cc (right): https://codereview.chromium.org/1260033003/diff/90001/components/search/search.cc#newcode251 components/search/search.cc:251: #if !defined(OS_IOS) && !defined(OS_ANDROID) This #if guard wasn't here ...
5 years, 4 months ago (2015-07-31 15:38:45 UTC) #12
sdefresne
Thank you for your review. I've tried to answer your questions. Please take another look. ...
5 years, 4 months ago (2015-07-31 17:09:31 UTC) #13
Jered
On 2015/07/31 17:09:31, sdefresne wrote: > Thank you for your review. I've tried to answer ...
5 years, 4 months ago (2015-07-31 19:49:50 UTC) #14
Jered
(lgtm) https://codereview.chromium.org/1260033003/diff/90001/components/search/search.cc File components/search/search.cc (right): https://codereview.chromium.org/1260033003/diff/90001/components/search/search.cc#newcode251 components/search/search.cc:251: #if !defined(OS_IOS) && !defined(OS_ANDROID) On 2015/07/31 17:09:30, sdefresne ...
5 years, 4 months ago (2015-07-31 19:50:11 UTC) #15
sdefresne
TBR-ing OWNERS of client code impacted by refactoring - benwells for extensions/browser/ - droger for ...
5 years, 4 months ago (2015-08-03 09:44:39 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1260033003/130001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1260033003/130001
5 years, 4 months ago (2015-08-03 13:24:25 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:130001)
5 years, 4 months ago (2015-08-03 14:18:22 UTC) #21
commit-bot: I haz the power
5 years, 4 months ago (2015-08-03 14:18:58 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/51bbec7be7014d4d75d39c1a5c27b1ba9ddc3dcd
Cr-Commit-Position: refs/heads/master@{#341525}

Powered by Google App Engine
This is Rietveld 408576698