New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 627747 link

Starred by 6 users

Issue metadata

Status: Fixed
Owner:
Closed: Nov 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Task


Sign in to add a comment

Remove dead search/instant code

Project Member Reported by treib@chromium.org, Jul 13 2016

Issue description

There's a bunch of code in chrome/browser/search, chrome/browser/ui/search, and possibly other places, that was either never fully implemented, or has become unused.
 
Project Member

Comment 3 by bugdroid1@chromium.org, Jul 13 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/948c97f9e065bfb4cd9c7d4da5bb942f0a154455

commit 948c97f9e065bfb4cd9c7d4da5bb942f0a154455
Author: sfiera <sfiera@chromium.org>
Date: Wed Jul 13 19:37:56 2016

Merge InstantPage into InstantTab.

InstantPage objects are never instantiated except as InstantTab, which
is its only subclass.

BUG= 627747 

Review-Url: https://codereview.chromium.org/2144733004
Cr-Commit-Position: refs/heads/master@{#405223}

[modify] https://crrev.com/948c97f9e065bfb4cd9c7d4da5bb942f0a154455/chrome/browser/ui/search/instant_controller.cc
[modify] https://crrev.com/948c97f9e065bfb4cd9c7d4da5bb942f0a154455/chrome/browser/ui/search/instant_controller.h
[delete] https://crrev.com/a9d9a6721c939076b6c688b137378f2c4b939eb9/chrome/browser/ui/search/instant_page.cc
[delete] https://crrev.com/a9d9a6721c939076b6c688b137378f2c4b939eb9/chrome/browser/ui/search/instant_page.h
[modify] https://crrev.com/948c97f9e065bfb4cd9c7d4da5bb942f0a154455/chrome/browser/ui/search/instant_tab.cc
[modify] https://crrev.com/948c97f9e065bfb4cd9c7d4da5bb942f0a154455/chrome/browser/ui/search/instant_tab.h
[rename] https://crrev.com/948c97f9e065bfb4cd9c7d4da5bb942f0a154455/chrome/browser/ui/search/instant_tab_unittest.cc
[modify] https://crrev.com/948c97f9e065bfb4cd9c7d4da5bb942f0a154455/chrome/browser/ui/search/search_tab_helper.h
[modify] https://crrev.com/948c97f9e065bfb4cd9c7d4da5bb942f0a154455/chrome/chrome_browser_ui.gypi
[modify] https://crrev.com/948c97f9e065bfb4cd9c7d4da5bb942f0a154455/chrome/chrome_tests_unit.gypi

Project Member

Comment 4 by bugdroid1@chromium.org, Jul 14 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/d8c5a5e724fbbc898d08b6e87de7484ac332c93e

commit d8c5a5e724fbbc898d08b6e87de7484ac332c93e
Author: treib <treib@chromium.org>
Date: Thu Jul 14 12:02:52 2016

Cleanup in SearchTabHelper
- Remove unused InitForPreloadedNTP
- Make InstantSupportChanged private

BUG= 627747 

Review-Url: https://codereview.chromium.org/2152703002
Cr-Commit-Position: refs/heads/master@{#405473}

[modify] https://crrev.com/d8c5a5e724fbbc898d08b6e87de7484ac332c93e/chrome/browser/ui/search/search_tab_helper.cc
[modify] https://crrev.com/d8c5a5e724fbbc898d08b6e87de7484ac332c93e/chrome/browser/ui/search/search_tab_helper.h

Project Member

Comment 5 by bugdroid1@chromium.org, Jul 14 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/7c9bb3903da255f79ae14343768fdbe3dd63c5f4

commit 7c9bb3903da255f79ae14343768fdbe3dd63c5f4
Author: treib <treib@chromium.org>
Date: Thu Jul 14 12:44:48 2016

c/b/search/search.h|cc cleanups:
- Update some comments so they are closer to reality
- Remove an unused enum
- Slightly simplify an implementation

BUG= 627747 

Review-Url: https://codereview.chromium.org/2140383003
Cr-Commit-Position: refs/heads/master@{#405479}

[modify] https://crrev.com/7c9bb3903da255f79ae14343768fdbe3dd63c5f4/chrome/browser/search/search.cc
[modify] https://crrev.com/7c9bb3903da255f79ae14343768fdbe3dd63c5f4/chrome/browser/search/search.h

Comment 6 by treib@chromium.org, Jul 14 2016

Blockedon: 628207

Comment 8 by fi...@chromium.org, Jul 29 2016

Labels: zine-ntp-pe zine-triaged
Blockedon: 447810 476079
Adding bugs for more dead omnibox/search code.  These are nominally assigned to groby at the moment but I'm pretty sure they're effectively unowned since I've harassed her a number of times about them and nothing has ever happened :)
Project Member

Comment 10 by bugdroid1@chromium.org, Aug 4 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/ba5087e47fc4b2553050c4bd2eab6f74bed056ed

commit ba5087e47fc4b2553050c4bd2eab6f74bed056ed
Author: treib <treib@chromium.org>
Date: Thu Aug 04 09:13:06 2016

Remove "!IsSearchResultsPage" check in ChromeOmniboxClient
IsSearchResultsPage is always false here in practice.

Follow-up to https://codereview.chromium.org/2143953002

BUG= 627747 

Review-Url: https://codereview.chromium.org/2207883002
Cr-Commit-Position: refs/heads/master@{#409746}

[modify] https://crrev.com/ba5087e47fc4b2553050c4bd2eab6f74bed056ed/chrome/browser/ui/omnibox/chrome_omnibox_client.cc
[modify] https://crrev.com/ba5087e47fc4b2553050c4bd2eab6f74bed056ed/chrome/browser/ui/omnibox/chrome_omnibox_client.h

Project Member

Comment 11 by bugdroid1@chromium.org, Aug 12 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/c4fec3722b90b214511eb24745fa172c916f5902

commit c4fec3722b90b214511eb24745fa172c916f5902
Author: treib <treib@chromium.org>
Date: Fri Aug 12 09:53:28 2016

Remove search::IsQueryExtractionEnabled

BUG= 627747 , 627483 

Review-Url: https://codereview.chromium.org/2211983002
Cr-Commit-Position: refs/heads/master@{#411587}

[modify] https://crrev.com/c4fec3722b90b214511eb24745fa172c916f5902/chrome/browser/policy/policy_browsertest.cc
[modify] https://crrev.com/c4fec3722b90b214511eb24745fa172c916f5902/chrome/browser/search/instant_unittest_base.cc
[modify] https://crrev.com/c4fec3722b90b214511eb24745fa172c916f5902/chrome/browser/search/instant_unittest_base.h
[modify] https://crrev.com/c4fec3722b90b214511eb24745fa172c916f5902/chrome/browser/search/search.cc
[modify] https://crrev.com/c4fec3722b90b214511eb24745fa172c916f5902/chrome/browser/search/search.h
[modify] https://crrev.com/c4fec3722b90b214511eb24745fa172c916f5902/chrome/browser/search/search_unittest.cc
[modify] https://crrev.com/c4fec3722b90b214511eb24745fa172c916f5902/chrome/browser/ui/browser_instant_controller_unittest.cc
[modify] https://crrev.com/c4fec3722b90b214511eb24745fa172c916f5902/chrome/browser/ui/search/instant_extended_interactive_uitest.cc
[modify] https://crrev.com/c4fec3722b90b214511eb24745fa172c916f5902/chrome/browser/ui/search/instant_extended_manual_interactive_uitest.cc
[modify] https://crrev.com/c4fec3722b90b214511eb24745fa172c916f5902/chrome/browser/ui/search/instant_search_prerenderer_unittest.cc
[modify] https://crrev.com/c4fec3722b90b214511eb24745fa172c916f5902/chrome/browser/ui/toolbar/toolbar_model_unittest.cc
[modify] https://crrev.com/c4fec3722b90b214511eb24745fa172c916f5902/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
[modify] https://crrev.com/c4fec3722b90b214511eb24745fa172c916f5902/components/omnibox/browser/verbatim_match.cc
[modify] https://crrev.com/c4fec3722b90b214511eb24745fa172c916f5902/components/search/search.cc
[modify] https://crrev.com/c4fec3722b90b214511eb24745fa172c916f5902/components/search/search.h
[modify] https://crrev.com/c4fec3722b90b214511eb24745fa172c916f5902/components/search/search_android_unittest.cc
[modify] https://crrev.com/c4fec3722b90b214511eb24745fa172c916f5902/components/search/search_switches.cc
[modify] https://crrev.com/c4fec3722b90b214511eb24745fa172c916f5902/components/search/search_switches.h
[modify] https://crrev.com/c4fec3722b90b214511eb24745fa172c916f5902/components/search/search_unittest.cc
[modify] https://crrev.com/c4fec3722b90b214511eb24745fa172c916f5902/ios/chrome/browser/BUILD.gn
[delete] https://crrev.com/ad430d0e3ed88bc0734c65e2861cd7a9e4864cce/ios/chrome/browser/search/search_util.h
[delete] https://crrev.com/ad430d0e3ed88bc0734c65e2861cd7a9e4864cce/ios/chrome/browser/search/search_util.mm
[modify] https://crrev.com/c4fec3722b90b214511eb24745fa172c916f5902/ios/chrome/ios_chrome.gyp

Project Member

Comment 12 by bugdroid1@chromium.org, Aug 12 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/7943ceeef722036f20a2c2da02bc4ebfa62a31a0

commit 7943ceeef722036f20a2c2da02bc4ebfa62a31a0
Author: treib <treib@chromium.org>
Date: Fri Aug 12 11:40:52 2016

Remove SearchTabHelper::IsSearchResultsPage
It was confusingly named: It only refers to search pages rendered in the Instant process, which is an abandoned feature, so in practice it always returns false.

BUG= 627747 

Review-Url: https://codereview.chromium.org/2211533004
Cr-Commit-Position: refs/heads/master@{#411597}

[modify] https://crrev.com/7943ceeef722036f20a2c2da02bc4ebfa62a31a0/chrome/browser/ui/search/instant_search_prerenderer.cc
[modify] https://crrev.com/7943ceeef722036f20a2c2da02bc4ebfa62a31a0/chrome/browser/ui/search/search_tab_helper.cc
[modify] https://crrev.com/7943ceeef722036f20a2c2da02bc4ebfa62a31a0/chrome/browser/ui/search/search_tab_helper.h

Project Member

Comment 13 by bugdroid1@chromium.org, Aug 17 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/de23c50488c2558ba2633c0e4a2b09924bdd3704

commit de23c50488c2558ba2633c0e4a2b09924bdd3704
Author: treib <treib@chromium.org>
Date: Wed Aug 17 08:09:34 2016

Remove search::GetSearchTerms since it always returns empty string
and update call sites accordingly.

This is the first of probably many follow-ups to https://codereview.chromium.org/2211983002/

TBRing a comment-only change in components/sessions/core/serialized_navigation_entry.cc
TBR=marja@chromium.org

BUG= 627747 

Review-Url: https://codereview.chromium.org/2232863002
Cr-Commit-Position: refs/heads/master@{#412473}

[modify] https://crrev.com/de23c50488c2558ba2633c0e4a2b09924bdd3704/chrome/app/generated_resources.grd
[modify] https://crrev.com/de23c50488c2558ba2633c0e4a2b09924bdd3704/chrome/browser/search/search.cc
[modify] https://crrev.com/de23c50488c2558ba2633c0e4a2b09924bdd3704/chrome/browser/search/search.h
[modify] https://crrev.com/de23c50488c2558ba2633c0e4a2b09924bdd3704/chrome/browser/ui/android/toolbar/toolbar_model_android.cc
[modify] https://crrev.com/de23c50488c2558ba2633c0e4a2b09924bdd3704/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.h
[modify] https://crrev.com/de23c50488c2558ba2633c0e4a2b09924bdd3704/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm
[modify] https://crrev.com/de23c50488c2558ba2633c0e4a2b09924bdd3704/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.h
[modify] https://crrev.com/de23c50488c2558ba2633c0e4a2b09924bdd3704/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm
[modify] https://crrev.com/de23c50488c2558ba2633c0e4a2b09924bdd3704/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor_unittest.mm
[modify] https://crrev.com/de23c50488c2558ba2633c0e4a2b09924bdd3704/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest_helper.h
[modify] https://crrev.com/de23c50488c2558ba2633c0e4a2b09924bdd3704/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h
[modify] https://crrev.com/de23c50488c2558ba2633c0e4a2b09924bdd3704/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm
[modify] https://crrev.com/de23c50488c2558ba2633c0e4a2b09924bdd3704/chrome/browser/ui/search/instant_controller.cc
[modify] https://crrev.com/de23c50488c2558ba2633c0e4a2b09924bdd3704/chrome/browser/ui/search/search_tab_helper.cc
[modify] https://crrev.com/de23c50488c2558ba2633c0e4a2b09924bdd3704/chrome/browser/ui/toolbar/chrome_toolbar_model_delegate.cc
[modify] https://crrev.com/de23c50488c2558ba2633c0e4a2b09924bdd3704/chrome/browser/ui/toolbar/chrome_toolbar_model_delegate.h
[modify] https://crrev.com/de23c50488c2558ba2633c0e4a2b09924bdd3704/chrome/browser/ui/toolbar/toolbar_model_unittest.cc
[modify] https://crrev.com/de23c50488c2558ba2633c0e4a2b09924bdd3704/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
[modify] https://crrev.com/de23c50488c2558ba2633c0e4a2b09924bdd3704/chrome/common/search/search_types.h
[modify] https://crrev.com/de23c50488c2558ba2633c0e4a2b09924bdd3704/components/metrics/proto/omnibox_event.proto
[modify] https://crrev.com/de23c50488c2558ba2633c0e4a2b09924bdd3704/components/omnibox/browser/omnibox_edit_model.cc
[modify] https://crrev.com/de23c50488c2558ba2633c0e4a2b09924bdd3704/components/omnibox/browser/omnibox_edit_unittest.cc
[modify] https://crrev.com/de23c50488c2558ba2633c0e4a2b09924bdd3704/components/omnibox/browser/omnibox_field_trial_unittest.cc
[modify] https://crrev.com/de23c50488c2558ba2633c0e4a2b09924bdd3704/components/omnibox/browser/zero_suggest_provider_unittest.cc
[modify] https://crrev.com/de23c50488c2558ba2633c0e4a2b09924bdd3704/components/sessions/core/serialized_navigation_entry.cc
[modify] https://crrev.com/de23c50488c2558ba2633c0e4a2b09924bdd3704/components/toolbar/test_toolbar_model.cc
[modify] https://crrev.com/de23c50488c2558ba2633c0e4a2b09924bdd3704/components/toolbar/test_toolbar_model.h
[modify] https://crrev.com/de23c50488c2558ba2633c0e4a2b09924bdd3704/components/toolbar/toolbar_model.cc
[modify] https://crrev.com/de23c50488c2558ba2633c0e4a2b09924bdd3704/components/toolbar/toolbar_model.h
[modify] https://crrev.com/de23c50488c2558ba2633c0e4a2b09924bdd3704/components/toolbar/toolbar_model_delegate.h
[modify] https://crrev.com/de23c50488c2558ba2633c0e4a2b09924bdd3704/components/toolbar/toolbar_model_impl.cc
[modify] https://crrev.com/de23c50488c2558ba2633c0e4a2b09924bdd3704/components/toolbar/toolbar_model_impl.h

Project Member

Comment 14 by bugdroid1@chromium.org, Sep 2 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/b566b98f807b4b81f3d00801aaa1bd497609ebab

commit b566b98f807b4b81f3d00801aaa1bd497609ebab
Author: treib <treib@chromium.org>
Date: Fri Sep 02 09:06:16 2016

Remove ShowURL/HideURL from OmniboxView and LocationBarView.
They're not used anymore.

Follow-up to https://codereview.chromium.org/2232863002/

BUG= 627747 

Review-Url: https://codereview.chromium.org/2256613002
Cr-Commit-Position: refs/heads/master@{#416215}

[modify] https://crrev.com/b566b98f807b4b81f3d00801aaa1bd497609ebab/chrome/app/generated_resources.grd
[modify] https://crrev.com/b566b98f807b4b81f3d00801aaa1bd497609ebab/chrome/browser/chromeos/accessibility/sticky_keys_browsertest.cc
[modify] https://crrev.com/b566b98f807b4b81f3d00801aaa1bd497609ebab/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h
[modify] https://crrev.com/b566b98f807b4b81f3d00801aaa1bd497609ebab/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm
[modify] https://crrev.com/b566b98f807b4b81f3d00801aaa1bd497609ebab/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac_unittest.mm
[modify] https://crrev.com/b566b98f807b4b81f3d00801aaa1bd497609ebab/chrome/browser/ui/views/location_bar/location_bar_view.cc
[modify] https://crrev.com/b566b98f807b4b81f3d00801aaa1bd497609ebab/chrome/browser/ui/views/location_bar/location_bar_view.h
[modify] https://crrev.com/b566b98f807b4b81f3d00801aaa1bd497609ebab/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
[modify] https://crrev.com/b566b98f807b4b81f3d00801aaa1bd497609ebab/chrome/browser/ui/views/omnibox/omnibox_view_views_unittest.cc
[modify] https://crrev.com/b566b98f807b4b81f3d00801aaa1bd497609ebab/components/omnibox/browser/omnibox_edit_controller.h
[modify] https://crrev.com/b566b98f807b4b81f3d00801aaa1bd497609ebab/components/omnibox/browser/omnibox_edit_unittest.cc
[modify] https://crrev.com/b566b98f807b4b81f3d00801aaa1bd497609ebab/components/omnibox/browser/omnibox_view.cc
[modify] https://crrev.com/b566b98f807b4b81f3d00801aaa1bd497609ebab/components/omnibox/browser/omnibox_view.h

Project Member

Comment 15 by bugdroid1@chromium.org, Sep 2 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/f5a290136489fed2a16ead7552e4d5f8f9ed1f43

commit f5a290136489fed2a16ead7552e4d5f8f9ed1f43
Author: treib <treib@chromium.org>
Date: Fri Sep 02 11:08:13 2016

Remove url_replacement logic from Omnibox/ToolbarModel

Follow-up to https://codereview.chromium.org/2256613002/

BUG= 627747 , 447810 

Review-Url: https://codereview.chromium.org/2242213008
Cr-Commit-Position: refs/heads/master@{#416233}

[modify] https://crrev.com/f5a290136489fed2a16ead7552e4d5f8f9ed1f43/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm
[modify] https://crrev.com/f5a290136489fed2a16ead7552e4d5f8f9ed1f43/chrome/browser/ui/omnibox/omnibox_view_browsertest.cc
[modify] https://crrev.com/f5a290136489fed2a16ead7552e4d5f8f9ed1f43/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
[modify] https://crrev.com/f5a290136489fed2a16ead7552e4d5f8f9ed1f43/components/omnibox/browser/omnibox_edit_model.cc
[modify] https://crrev.com/f5a290136489fed2a16ead7552e4d5f8f9ed1f43/components/omnibox/browser/omnibox_edit_model.h
[modify] https://crrev.com/f5a290136489fed2a16ead7552e4d5f8f9ed1f43/components/omnibox/browser/omnibox_view.cc
[modify] https://crrev.com/f5a290136489fed2a16ead7552e4d5f8f9ed1f43/components/omnibox/browser/omnibox_view.h
[modify] https://crrev.com/f5a290136489fed2a16ead7552e4d5f8f9ed1f43/components/toolbar/BUILD.gn
[delete] https://crrev.com/997952d9496f57bdc4434d515a50770dd5735715/components/toolbar/toolbar_model.cc
[modify] https://crrev.com/f5a290136489fed2a16ead7552e4d5f8f9ed1f43/components/toolbar/toolbar_model.h

Project Member

Comment 16 by bugdroid1@chromium.org, Sep 5 2016

Project Member

Comment 17 by bugdroid1@chromium.org, Sep 6 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/4576c724184e9507c3426be22c4808f021be35e9

commit 4576c724184e9507c3426be22c4808f021be35e9
Author: treib <treib@chromium.org>
Date: Tue Sep 06 09:27:09 2016

Remove chrome::NOTIFICATION_INSTANT_TAB_SUPPORT_DETERMINED

It's not used anywhere anymore.

TBR=thestig@chromium.org
for removed notification in chrome_notification_types.h

BUG= 627747 

Review-Url: https://codereview.chromium.org/2147733004
Cr-Commit-Position: refs/heads/master@{#416610}

[modify] https://crrev.com/4576c724184e9507c3426be22c4808f021be35e9/chrome/browser/chrome_notification_types.h
[modify] https://crrev.com/4576c724184e9507c3426be22c4808f021be35e9/chrome/browser/ui/search/instant_controller.cc

Project Member

Comment 20 by bugdroid1@chromium.org, Nov 18 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/bd0a0a87c71f81df59b8fdf0b6dcd70ff9e65b1a

commit bd0a0a87c71f81df59b8fdf0b6dcd70ff9e65b1a
Author: treib <treib@chromium.org>
Date: Fri Nov 18 08:56:48 2016

ExtensionInstallUIDefault cleanup: Remove check for InstantExtended API

InstantExtended has been enabled for years (on desktop), and anyway checking it here doesn't make any sense

BUG= 627747 

Review-Url: https://codereview.chromium.org/2511143003
Cr-Commit-Position: refs/heads/master@{#433153}

[modify] https://crrev.com/bd0a0a87c71f81df59b8fdf0b6dcd70ff9e65b1a/chrome/browser/ui/extensions/extension_install_ui_default.cc

Project Member

Comment 21 by bugdroid1@chromium.org, Nov 18 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/cfbf2c3164ca6db220f575792d053c8112ec2269

commit cfbf2c3164ca6db220f575792d053c8112ec2269
Author: treib <treib@chromium.org>
Date: Fri Nov 18 09:50:40 2016

Cleanup: Remove unused enable-instant-extended-api flag

I've always wondered why that flag showed up in chrome://version :D

It referenced a chrome_switches::kEnableInstantExtendedAPI which doesn't exist anymore.

BUG= 627747 

Review-Url: https://codereview.chromium.org/2510593004
Cr-Commit-Position: refs/heads/master@{#433163}

[modify] https://crrev.com/cfbf2c3164ca6db220f575792d053c8112ec2269/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java
[modify] https://crrev.com/cfbf2c3164ca6db220f575792d053c8112ec2269/content/public/android/java/src/org/chromium/content/common/ContentSwitches.java

Project Member

Comment 22 by bugdroid1@chromium.org, Nov 22 2016

Project Member

Comment 23 by bugdroid1@chromium.org, Nov 23 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/422b0e478e8913742d0692240eae016bad45f0a8

commit 422b0e478e8913742d0692240eae016bad45f0a8
Author: treib <treib@chromium.org>
Date: Wed Nov 23 12:46:40 2016

Cleanup: Remove for_search param from search::InstantExtendedEnabledParam()

TBRing mechanical ios/ changes
TBR=noyau

BUG= 627747 

Review-Url: https://codereview.chromium.org/2520993004
Cr-Commit-Position: refs/heads/master@{#434151}

[modify] https://crrev.com/422b0e478e8913742d0692240eae016bad45f0a8/chrome/browser/search_engines/ui_thread_search_terms_data.cc
[modify] https://crrev.com/422b0e478e8913742d0692240eae016bad45f0a8/chrome/browser/search_engines/ui_thread_search_terms_data.h
[modify] https://crrev.com/422b0e478e8913742d0692240eae016bad45f0a8/components/omnibox/browser/history_url_provider.cc
[modify] https://crrev.com/422b0e478e8913742d0692240eae016bad45f0a8/components/search/search.cc
[modify] https://crrev.com/422b0e478e8913742d0692240eae016bad45f0a8/components/search/search.h
[modify] https://crrev.com/422b0e478e8913742d0692240eae016bad45f0a8/components/search/search_unittest.cc
[modify] https://crrev.com/422b0e478e8913742d0692240eae016bad45f0a8/components/search_engines/search_terms_data.cc
[modify] https://crrev.com/422b0e478e8913742d0692240eae016bad45f0a8/components/search_engines/search_terms_data.h
[modify] https://crrev.com/422b0e478e8913742d0692240eae016bad45f0a8/components/search_engines/template_url.cc
[modify] https://crrev.com/422b0e478e8913742d0692240eae016bad45f0a8/ios/chrome/browser/search_engines/ui_thread_search_terms_data.cc
[modify] https://crrev.com/422b0e478e8913742d0692240eae016bad45f0a8/ios/chrome/browser/search_engines/ui_thread_search_terms_data.h

Project Member

Comment 24 by bugdroid1@chromium.org, Nov 23 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/1ca95c7cfa0a17fec86196cd8d37d24c2f1c65d7

commit 1ca95c7cfa0a17fec86196cd8d37d24c2f1c65d7
Author: treib <treib@chromium.org>
Date: Wed Nov 23 13:43:42 2016

Cleanup: Remove "gray text" logic from Omnibox

BUG= 627747 

Review-Url: https://codereview.chromium.org/2510373003
Cr-Commit-Position: refs/heads/master@{#434156}

[modify] https://crrev.com/1ca95c7cfa0a17fec86196cd8d37d24c2f1c65d7/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.h
[modify] https://crrev.com/1ca95c7cfa0a17fec86196cd8d37d24c2f1c65d7/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm
[modify] https://crrev.com/1ca95c7cfa0a17fec86196cd8d37d24c2f1c65d7/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm
[modify] https://crrev.com/1ca95c7cfa0a17fec86196cd8d37d24c2f1c65d7/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor_unittest.mm
[modify] https://crrev.com/1ca95c7cfa0a17fec86196cd8d37d24c2f1c65d7/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest.mm
[modify] https://crrev.com/1ca95c7cfa0a17fec86196cd8d37d24c2f1c65d7/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h
[modify] https://crrev.com/1ca95c7cfa0a17fec86196cd8d37d24c2f1c65d7/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm
[modify] https://crrev.com/1ca95c7cfa0a17fec86196cd8d37d24c2f1c65d7/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac_unittest.mm
[modify] https://crrev.com/1ca95c7cfa0a17fec86196cd8d37d24c2f1c65d7/chrome/browser/ui/views/location_bar/location_bar_view.cc
[modify] https://crrev.com/1ca95c7cfa0a17fec86196cd8d37d24c2f1c65d7/chrome/browser/ui/views/location_bar/location_bar_view.h
[modify] https://crrev.com/1ca95c7cfa0a17fec86196cd8d37d24c2f1c65d7/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
[modify] https://crrev.com/1ca95c7cfa0a17fec86196cd8d37d24c2f1c65d7/chrome/browser/ui/views/omnibox/omnibox_view_views.h
[modify] https://crrev.com/1ca95c7cfa0a17fec86196cd8d37d24c2f1c65d7/components/omnibox/browser/omnibox_edit_model.cc
[modify] https://crrev.com/1ca95c7cfa0a17fec86196cd8d37d24c2f1c65d7/components/omnibox/browser/omnibox_edit_model.h
[modify] https://crrev.com/1ca95c7cfa0a17fec86196cd8d37d24c2f1c65d7/components/omnibox/browser/omnibox_edit_unittest.cc
[modify] https://crrev.com/1ca95c7cfa0a17fec86196cd8d37d24c2f1c65d7/components/omnibox/browser/omnibox_view.h

Project Member

Comment 25 by bugdroid1@chromium.org, Nov 30 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/6e412f922e388794d1ef14269e8e1d53dc2814ee

commit 6e412f922e388794d1ef14269e8e1d53dc2814ee
Author: treib <treib@chromium.org>
Date: Wed Nov 30 01:57:14 2016

Cleanup: Remove partial InstantSearch implementation on Android

This feature was abandoned long ago and never launched.
The FieldTrials which could have enabled it are being removed in https://codereview.chromium.org/2526753002/.

BUG= 627747 

Review-Url: https://codereview.chromium.org/2532173002
Cr-Commit-Position: refs/heads/master@{#435120}

[modify] https://crrev.com/6e412f922e388794d1ef14269e8e1d53dc2814ee/chrome/android/java/src/org/chromium/chrome/browser/tab/EmptyTabObserver.java
[modify] https://crrev.com/6e412f922e388794d1ef14269e8e1d53dc2814ee/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java
[modify] https://crrev.com/6e412f922e388794d1ef14269e8e1d53dc2814ee/chrome/android/java/src/org/chromium/chrome/browser/tab/TabObserver.java
[modify] https://crrev.com/6e412f922e388794d1ef14269e8e1d53dc2814ee/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java
[modify] https://crrev.com/6e412f922e388794d1ef14269e8e1d53dc2814ee/chrome/browser/android/omnibox/autocomplete_controller_android.cc
[modify] https://crrev.com/6e412f922e388794d1ef14269e8e1d53dc2814ee/chrome/browser/android/tab_android.cc
[modify] https://crrev.com/6e412f922e388794d1ef14269e8e1d53dc2814ee/chrome/browser/android/tab_android.h

Project Member

Comment 26 by bugdroid1@chromium.org, Dec 8 2016

Project Member

Comment 27 by bugdroid1@chromium.org, Dec 26 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/b4a9ec8b992f2f09f961efdcb4d554d2762a9c22

commit b4a9ec8b992f2f09f961efdcb4d554d2762a9c22
Author: treib <treib@chromium.org>
Date: Mon Dec 26 21:16:45 2016

Cleanup: Remove unused SearchTabHelper::GetOpenUrls

...and all the code that was there to support it, including Browser::GetOpenUrls and chrome::GetOpenUrls, as well as TopSites::GetCanonicalURLString.
While we're here, also clean up some other unused code from TopSites.

BUG= 627747 

Review-Url: https://codereview.chromium.org/2567043002
Cr-Commit-Position: refs/heads/master@{#440723}

[modify] https://crrev.com/b4a9ec8b992f2f09f961efdcb4d554d2762a9c22/chrome/browser/ui/BUILD.gn
[modify] https://crrev.com/b4a9ec8b992f2f09f961efdcb4d554d2762a9c22/chrome/browser/ui/browser.cc
[modify] https://crrev.com/b4a9ec8b992f2f09f961efdcb4d554d2762a9c22/chrome/browser/ui/browser.h
[modify] https://crrev.com/b4a9ec8b992f2f09f961efdcb4d554d2762a9c22/chrome/browser/ui/browser_command_controller.cc
[modify] https://crrev.com/b4a9ec8b992f2f09f961efdcb4d554d2762a9c22/chrome/browser/ui/search/search_tab_helper_delegate.cc
[modify] https://crrev.com/b4a9ec8b992f2f09f961efdcb4d554d2762a9c22/chrome/browser/ui/search/search_tab_helper_delegate.h
[delete] https://crrev.com/bf6de57d6e9aa301550b1ba9300059dd11fb951b/chrome/browser/ui/tabs/tab_strip_model_utils.cc
[delete] https://crrev.com/bf6de57d6e9aa301550b1ba9300059dd11fb951b/chrome/browser/ui/tabs/tab_strip_model_utils.h
[modify] https://crrev.com/b4a9ec8b992f2f09f961efdcb4d554d2762a9c22/components/history/core/browser/top_sites.h
[modify] https://crrev.com/b4a9ec8b992f2f09f961efdcb4d554d2762a9c22/components/history/core/browser/top_sites_database.cc
[modify] https://crrev.com/b4a9ec8b992f2f09f961efdcb4d554d2762a9c22/components/history/core/browser/top_sites_impl.cc
[modify] https://crrev.com/b4a9ec8b992f2f09f961efdcb4d554d2762a9c22/components/history/core/browser/top_sites_impl.h
[modify] https://crrev.com/b4a9ec8b992f2f09f961efdcb4d554d2762a9c22/components/omnibox/browser/zero_suggest_provider_unittest.cc

Project Member

Comment 28 by bugdroid1@chromium.org, Jan 24 2017

Project Member

Comment 29 by bugdroid1@chromium.org, Jan 24 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/fb44744e06573d880f3c99d1aec1e960bb18dc31

commit fb44744e06573d880f3c99d1aec1e960bb18dc31
Author: treib <treib@chromium.org>
Date: Tue Jan 24 14:20:06 2017

Cleanup in components/search and chrome/browser/search

Remove unused function
IsQueryExtractionAllowedForURL

Remove pointless functions
ShouldReuseInstantSearchBasePage
ShouldPrefetchSearchResults
(these always returned IsInstantExtendedAPIEnabled)

Move IsSuitableURLForInstant to c/b/search.cc (only call site)

Remove unused field trial functions

BUG= 627747 

Review-Url: https://codereview.chromium.org/2651763002
Cr-Commit-Position: refs/heads/master@{#445715}

[modify] https://crrev.com/fb44744e06573d880f3c99d1aec1e960bb18dc31/chrome/browser/search/instant_service.cc
[modify] https://crrev.com/fb44744e06573d880f3c99d1aec1e960bb18dc31/chrome/browser/search/search.cc
[modify] https://crrev.com/fb44744e06573d880f3c99d1aec1e960bb18dc31/chrome/browser/search/search.h
[modify] https://crrev.com/fb44744e06573d880f3c99d1aec1e960bb18dc31/chrome/browser/search/search_unittest.cc
[modify] https://crrev.com/fb44744e06573d880f3c99d1aec1e960bb18dc31/chrome/browser/ui/search/instant_search_prerenderer.cc
[modify] https://crrev.com/fb44744e06573d880f3c99d1aec1e960bb18dc31/chrome/browser/ui/search/instant_search_prerenderer.h
[modify] https://crrev.com/fb44744e06573d880f3c99d1aec1e960bb18dc31/components/search/search.cc
[modify] https://crrev.com/fb44744e06573d880f3c99d1aec1e960bb18dc31/components/search/search.h
[modify] https://crrev.com/fb44744e06573d880f3c99d1aec1e960bb18dc31/components/search/search_unittest.cc

Project Member

Comment 31 by bugdroid1@chromium.org, Jan 26 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/eae6137965dceb05f01056f60f9ae6c95cd3cd12

commit eae6137965dceb05f01056f60f9ae6c95cd3cd12
Author: treib <treib@chromium.org>
Date: Thu Jan 26 16:50:51 2017

Cleanup: Remove the last traces of Instant Search on Android

- Usage of InstantSearchPrerenderer in omnibox_prerender.cc.
- Some unnecessary includes in toolbar_model_android.cc.

Instant was never launched on Android; it's time to get rid of the code.

BUG= 627747 

Review-Url: https://codereview.chromium.org/2652763013
Cr-Commit-Position: refs/heads/master@{#446355}

[modify] https://crrev.com/eae6137965dceb05f01056f60f9ae6c95cd3cd12/chrome/browser/android/omnibox/omnibox_prerender.cc
[modify] https://crrev.com/eae6137965dceb05f01056f60f9ae6c95cd3cd12/chrome/browser/ui/android/toolbar/toolbar_model_android.cc

BTW, are you aware of  bug 552720 ?  It seems relevant to this bug (and I'd be happy for you to take it over if you want).
Blockedon: 552720
No, somehow I hadn't seen that one, thanks!
I have already removed a bunch of embeddedSearch APIs under  bug 628207 . I'll double-check if there's more that can go (but as always, no guarantees on when I'll get to it).
Project Member

Comment 36 by bugdroid1@chromium.org, Mar 9 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/4fe3a084bcf7a2782c29498761186eac282306b5

commit 4fe3a084bcf7a2782c29498761186eac282306b5
Author: treib <treib@chromium.org>
Date: Thu Mar 09 23:28:29 2017

Remove unused instant_overlay_controller_mac.h/mm

This hasn't been used in a *long* time. It's not referenced in any build
files, and its supposed base class doesn't exist anymore.

BUG= 627747 

Review-Url: https://codereview.chromium.org/2740993002
Cr-Commit-Position: refs/heads/master@{#455896}

[delete] https://crrev.com/1b01baf4b87cc88316e7104046309ecc515f438a/chrome/browser/ui/cocoa/tab_contents/instant_overlay_controller_mac.h
[delete] https://crrev.com/1b01baf4b87cc88316e7104046309ecc515f438a/chrome/browser/ui/cocoa/tab_contents/instant_overlay_controller_mac.mm

Project Member

Comment 37 by bugdroid1@chromium.org, Mar 10 2017

Project Member

Comment 38 by bugdroid1@chromium.org, Mar 21 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/f2d087b2e71a7f87b4dd71ebf424820488459ca8

commit f2d087b2e71a7f87b4dd71ebf424820488459ca8
Author: treib <treib@chromium.org>
Date: Tue Mar 21 10:35:36 2017

SearchTabHelper: Find browser/window instead of having them passed in

This fixes a crash introduced in https://codereview.chromium.org/2739943005,
and it generally seems much less fragile: No need to rely on magic callbacks
getting called in just the right places.

BUG= 627747 ,702505

Review-Url: https://codereview.chromium.org/2757863002
Cr-Commit-Position: refs/heads/master@{#458366}

[modify] https://crrev.com/f2d087b2e71a7f87b4dd71ebf424820488459ca8/chrome/browser/ui/browser.cc
[modify] https://crrev.com/f2d087b2e71a7f87b4dd71ebf424820488459ca8/chrome/browser/ui/browser_browsertest.cc
[modify] https://crrev.com/f2d087b2e71a7f87b4dd71ebf424820488459ca8/chrome/browser/ui/search/search_tab_helper.cc
[modify] https://crrev.com/f2d087b2e71a7f87b4dd71ebf424820488459ca8/chrome/browser/ui/search/search_tab_helper.h

Comment 40 by treib@chromium.org, Apr 28 2017

Labels: -merge-merged-2795
Removing wrongly-applied "merged" label.

Comment 41 by treib@chromium.org, Apr 28 2017

Next order of business: Get rid of the notion of "Instant support".

This was meant to express whether a given page is aware of and wants to use the various embeddedSearch APIs (which boils down to this script:
https://cs.chromium.org/chromium/src/chrome/renderer/searchbox/searchbox_extension.cc?rcl=c41d3c785c5179a38e54c6c80ea63d56cc7cfd12&l=233). This notion is no longer necessary or useful: Today, only NTPs can ever have Instant support, and for all practical purposes, they always do.
(There could in theory be third-party NTPs without Instant support, but even then there's no real reason to deny them access to the embeddedSearch APIs. In fact, some third-party NTPs today have to work around Chrome's broken Instant support detection to get access to the mostVisited APIs.)

There's a *lot* of plumbing in place to determine the Instant support and to keep it updated when the page navigates or the active tab changes etc. Let's rip it all out.
Don't forget to test third-party NTPs after refactoring :)

Comment 43 by treib@chromium.org, Apr 28 2017

Thanks for the heads-up! I usually try the Bing NTP (the only third-party NTP that's readily available around here); once I'm done with this series of CLs, I'll give you a heads-up so you can try with Yandex too. :)
Thanks.
Do you happen to know if TemplateURLData::search_terms_replacement_key param is really used by any Instant code? I could not find any usage of it and I have gone through a lot of pains to fix bugs caused by its replacement inside TemplateUrl constructor.
https://cs.chromium.org/chromium/src/components/search_engines/template_url.cc?l=1167

Its declared here: https://cs.chromium.org/chromium/src/components/search_engines/template_url_data.h?l=142

Looking at the script kSupportsInstantScript - actually it was the first  problem that I had to analyze, looking why our NTP was not working in Chromium at first version. 
It did not implemented embeddedSearch.searchBox.onsubmit handler :)

Comment 46 by treib@chromium.org, Apr 28 2017

I don't *think* that param is still used. It was used in the first iteration of Instant, which showed search terms instead of a "google.com/search?q=..." URL in the Omnibox. That feature has been gone for a loong time, but it's hard to be completely sure the param isn't still used for something else somewhere. I'll continue chipping away at this, and hopefully get to a point where it can be removed sometime.

BTW, kSupportsInstantScript will hopefully be gone soon, see https://codereview.chromium.org/2852693002
Project Member

Comment 48 by bugdroid1@chromium.org, May 2 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/5bd9e2fd296b774e34d04cddfb09893525a79c04

commit 5bd9e2fd296b774e34d04cddfb09893525a79c04
Author: treib <treib@chromium.org>
Date: Tue May 02 14:00:36 2017

Remove DetermineIfPageSupportsInstant and all its plumbing

This is part of a series of CLs to get rid of the notion of
"Instant support" entirely, see
https://bugs.chromium.org/p/chromium/issues/detail?id=627747#c41

BUG= 627747 

Review-Url: https://codereview.chromium.org/2852693002
Cr-Commit-Position: refs/heads/master@{#468624}

[modify] https://crrev.com/5bd9e2fd296b774e34d04cddfb09893525a79c04/chrome/browser/ui/search/instant_tab_unittest.cc
[modify] https://crrev.com/5bd9e2fd296b774e34d04cddfb09893525a79c04/chrome/browser/ui/search/search_ipc_router.cc
[modify] https://crrev.com/5bd9e2fd296b774e34d04cddfb09893525a79c04/chrome/browser/ui/search/search_ipc_router.h
[modify] https://crrev.com/5bd9e2fd296b774e34d04cddfb09893525a79c04/chrome/browser/ui/search/search_tab_helper.cc
[modify] https://crrev.com/5bd9e2fd296b774e34d04cddfb09893525a79c04/chrome/browser/ui/search/search_tab_helper.h
[modify] https://crrev.com/5bd9e2fd296b774e34d04cddfb09893525a79c04/chrome/browser/ui/search/search_tab_helper_unittest.cc
[modify] https://crrev.com/5bd9e2fd296b774e34d04cddfb09893525a79c04/chrome/common/instant.mojom
[modify] https://crrev.com/5bd9e2fd296b774e34d04cddfb09893525a79c04/chrome/common/search/mock_searchbox.h
[modify] https://crrev.com/5bd9e2fd296b774e34d04cddfb09893525a79c04/chrome/renderer/searchbox/searchbox.cc
[modify] https://crrev.com/5bd9e2fd296b774e34d04cddfb09893525a79c04/chrome/renderer/searchbox/searchbox.h
[modify] https://crrev.com/5bd9e2fd296b774e34d04cddfb09893525a79c04/chrome/renderer/searchbox/searchbox_extension.cc
[modify] https://crrev.com/5bd9e2fd296b774e34d04cddfb09893525a79c04/chrome/renderer/searchbox/searchbox_extension.h

Cc: a-...@yandex-team.ru
a-v-y: I think now would be a good time to verify that the Yandex NTP still works correctly!
Ok, I'll fetch latest changes and check. Thanks.
Checked, no problems found. 
Am I right that remote NTP page functionality in Chrome will be deprecated sooner or later?
Thanks!
About remote NTPs: No - Google's implementation of a remote NTP will likely go away soonish, but there are no plans to remove support for third-party (remote) NTPs.
Project Member

Comment 55 by bugdroid1@chromium.org, May 16 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/8d6cc389014e25bb903075473ef9bba3c50faf87

commit 8d6cc389014e25bb903075473ef9bba3c50faf87
Author: treib <treib@chromium.org>
Date: Tue May 16 16:50:29 2017

Instant: remove InstantSupportState

Nobody cares about its value or the corresponding change notifications
anymore. Also remove SearchModel::State which now consisted only of the
SearchMode.

BUG= 627747 

Review-Url: https://codereview.chromium.org/2885853002
Cr-Commit-Position: refs/heads/master@{#472130}

[modify] https://crrev.com/8d6cc389014e25bb903075473ef9bba3c50faf87/chrome/browser/ui/browser_instant_controller.cc
[modify] https://crrev.com/8d6cc389014e25bb903075473ef9bba3c50faf87/chrome/browser/ui/browser_instant_controller.h
[delete] https://crrev.com/582a4088398728aa9b1ab672dd92ecc9b9d589db/chrome/browser/ui/search/instant_tab_unittest.cc
[modify] https://crrev.com/8d6cc389014e25bb903075473ef9bba3c50faf87/chrome/browser/ui/search/search_delegate.cc
[modify] https://crrev.com/8d6cc389014e25bb903075473ef9bba3c50faf87/chrome/browser/ui/search/search_delegate.h
[modify] https://crrev.com/8d6cc389014e25bb903075473ef9bba3c50faf87/chrome/browser/ui/search/search_model.cc
[modify] https://crrev.com/8d6cc389014e25bb903075473ef9bba3c50faf87/chrome/browser/ui/search/search_model.h
[modify] https://crrev.com/8d6cc389014e25bb903075473ef9bba3c50faf87/chrome/browser/ui/search/search_model_observer.h
[modify] https://crrev.com/8d6cc389014e25bb903075473ef9bba3c50faf87/chrome/browser/ui/search/search_model_unittest.cc
[modify] https://crrev.com/8d6cc389014e25bb903075473ef9bba3c50faf87/chrome/browser/ui/search/search_tab_helper.cc
[modify] https://crrev.com/8d6cc389014e25bb903075473ef9bba3c50faf87/chrome/test/BUILD.gn

Project Member

Comment 56 by bugdroid1@chromium.org, Aug 22 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/5891b281d3a5cfc74688a45967d88047bc4f3044

commit 5891b281d3a5cfc74688a45967d88047bc4f3044
Author: Marc Treib <treib@chromium.org>
Date: Tue Aug 22 09:44:30 2017

Various small cleanups around Instant

Bug:  627747 
Change-Id: Ie00c335ce465173106302c34601c3fd9b44584aa
Reviewed-on: https://chromium-review.googlesource.com/623675
Commit-Queue: Marc Treib <treib@chromium.org>
Reviewed-by: Chris Pickel <sfiera@chromium.org>
Cr-Commit-Position: refs/heads/master@{#496262}
[modify] https://crrev.com/5891b281d3a5cfc74688a45967d88047bc4f3044/chrome/browser/search/instant_service.cc
[modify] https://crrev.com/5891b281d3a5cfc74688a45967d88047bc4f3044/chrome/browser/search/instant_service.h
[modify] https://crrev.com/5891b281d3a5cfc74688a45967d88047bc4f3044/chrome/browser/ui/browser_instant_controller.cc
[modify] https://crrev.com/5891b281d3a5cfc74688a45967d88047bc4f3044/chrome/browser/ui/browser_instant_controller.h
[modify] https://crrev.com/5891b281d3a5cfc74688a45967d88047bc4f3044/chrome/browser/ui/search/instant_controller.cc
[modify] https://crrev.com/5891b281d3a5cfc74688a45967d88047bc4f3044/chrome/browser/ui/search/instant_controller.h
[modify] https://crrev.com/5891b281d3a5cfc74688a45967d88047bc4f3044/chrome/browser/ui/search/search_ipc_router.h
[modify] https://crrev.com/5891b281d3a5cfc74688a45967d88047bc4f3044/chrome/browser/ui/search/search_tab_helper.cc
[modify] https://crrev.com/5891b281d3a5cfc74688a45967d88047bc4f3044/chrome/browser/ui/search/search_tab_helper.h

Project Member

Comment 57 by bugdroid1@chromium.org, Aug 23 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/f8fbcadc3e553aad469aff4284dadfed75c1fa4a

commit f8fbcadc3e553aad469aff4284dadfed75c1fa4a
Author: Marc Treib <treib@chromium.org>
Date: Wed Aug 23 09:54:56 2017

Remove InstantExtendedManualTest

This was a MANUAL_ test, meaning it never ran on any bots, and AFAICT
nobody has run it in years. It's rotted quite a bit, and I couldn't get
it to work despite some effort. With the remote NTP on its way out, it
doesn't seem worth keeping around any longer. We do have
LocalNTPUITest.FakeboxRedirectsToOmnibox which covers pretty much the
same thing for the local NTP.

Bug:  627747 
Change-Id: I6674c5bca8f5963ee8e2db3485dc97be3260548e
Reviewed-on: https://chromium-review.googlesource.com/626497
Reviewed-by: Chris Pickel <sfiera@chromium.org>
Commit-Queue: Marc Treib <treib@chromium.org>
Cr-Commit-Position: refs/heads/master@{#496642}
[delete] https://crrev.com/9bdc8c1c4053b8a63b4e3b66fdd34afd7deeee69/chrome/browser/ui/search/instant_extended_manual_interactive_uitest.cc
[modify] https://crrev.com/f8fbcadc3e553aad469aff4284dadfed75c1fa4a/chrome/test/BUILD.gn
[delete] https://crrev.com/9bdc8c1c4053b8a63b4e3b66fdd34afd7deeee69/chrome/test/data/search/replay/archive.wpr
[delete] https://crrev.com/9bdc8c1c4053b8a63b4e3b66fdd34afd7deeee69/chrome/test/data/search/tools/instant_extended_manual_tests.py

Project Member

Comment 58 by bugdroid1@chromium.org, Aug 25 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/cc8fffdfcafaafaf4faf58abd2e5f162b155415e

commit cc8fffdfcafaafaf4faf58abd2e5f162b155415e
Author: Marc Treib <treib@chromium.org>
Date: Fri Aug 25 09:00:43 2017

Remove InstantExtended.ShowNTP user action

It's the only InstantExtended.* user action still left, and it's not
that useful - we have better metrics for NTP impressions.
Also mark InstantExtended.ShowSRP as obsolete; it hasn't existed in the
code for a long time.

Bug:  627747 
Change-Id: Ib088de03db682ae996f47b023ef4a0079768b9bf
Reviewed-on: https://chromium-review.googlesource.com/632536
Reviewed-by: Mark Pearson <mpearson@chromium.org>
Commit-Queue: Marc Treib <treib@chromium.org>
Cr-Commit-Position: refs/heads/master@{#497360}
[modify] https://crrev.com/cc8fffdfcafaafaf4faf58abd2e5f162b155415e/chrome/browser/ui/browser_instant_controller.cc
[modify] https://crrev.com/cc8fffdfcafaafaf4faf58abd2e5f162b155415e/tools/metrics/actions/actions.xml

Project Member

Comment 60 by bugdroid1@chromium.org, Aug 30 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/18a0e5d1d3cdcd8a89cde8d6bfc726ad32f0edf9

commit 18a0e5d1d3cdcd8a89cde8d6bfc726ad32f0edf9
Author: Marc Treib <treib@chromium.org>
Date: Wed Aug 30 09:50:53 2017

Instant cleanup: Remove SearchMode

It was now just a wrapper around the Origin enum, so let's just use that
directly.

Followup to https://chromium-review.googlesource.com/638335

Bug:  627747 
Change-Id: I761e17f93817b04fd7841f17e754926bfcd7fcec
Reviewed-on: https://chromium-review.googlesource.com/640389
Commit-Queue: Marc Treib <treib@chromium.org>
Reviewed-by: Chris Pickel <sfiera@chromium.org>
Cr-Commit-Position: refs/heads/master@{#498410}
[modify] https://crrev.com/18a0e5d1d3cdcd8a89cde8d6bfc726ad32f0edf9/chrome/browser/ui/browser_instant_controller.cc
[modify] https://crrev.com/18a0e5d1d3cdcd8a89cde8d6bfc726ad32f0edf9/chrome/browser/ui/browser_instant_controller.h
[modify] https://crrev.com/18a0e5d1d3cdcd8a89cde8d6bfc726ad32f0edf9/chrome/browser/ui/search/instant_controller.cc
[modify] https://crrev.com/18a0e5d1d3cdcd8a89cde8d6bfc726ad32f0edf9/chrome/browser/ui/search/instant_controller.h
[modify] https://crrev.com/18a0e5d1d3cdcd8a89cde8d6bfc726ad32f0edf9/chrome/browser/ui/search/search_delegate.cc
[modify] https://crrev.com/18a0e5d1d3cdcd8a89cde8d6bfc726ad32f0edf9/chrome/browser/ui/search/search_delegate.h
[modify] https://crrev.com/18a0e5d1d3cdcd8a89cde8d6bfc726ad32f0edf9/chrome/browser/ui/search/search_delegate_unittest.cc
[modify] https://crrev.com/18a0e5d1d3cdcd8a89cde8d6bfc726ad32f0edf9/chrome/browser/ui/search/search_model.cc
[modify] https://crrev.com/18a0e5d1d3cdcd8a89cde8d6bfc726ad32f0edf9/chrome/browser/ui/search/search_model.h
[modify] https://crrev.com/18a0e5d1d3cdcd8a89cde8d6bfc726ad32f0edf9/chrome/browser/ui/search/search_model_observer.h
[modify] https://crrev.com/18a0e5d1d3cdcd8a89cde8d6bfc726ad32f0edf9/chrome/browser/ui/search/search_model_unittest.cc
[modify] https://crrev.com/18a0e5d1d3cdcd8a89cde8d6bfc726ad32f0edf9/chrome/browser/ui/search/search_tab_helper.cc
[modify] https://crrev.com/18a0e5d1d3cdcd8a89cde8d6bfc726ad32f0edf9/chrome/common/BUILD.gn
[delete] https://crrev.com/ed2864a8ee018ed22906a65e1ef6e1d1c1e3b37a/chrome/common/search/search_types.h

Project Member

Comment 61 by bugdroid1@chromium.org, Aug 30 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/0cb75ffabe51a26775dd5879fda79a565cd2d3b4

commit 0cb75ffabe51a26775dd5879fda79a565cd2d3b4
Author: Henrik Boström <hbos@chromium.org>
Date: Wed Aug 30 16:27:48 2017

Revert "Instant cleanup: Remove SearchMode"

This reverts commit 18a0e5d1d3cdcd8a89cde8d6bfc726ad32f0edf9.

Reason for revert:
Causes Linux ChromiumOS MSan Tests and Linux MSan Tests failures.
See https://uberchromegw.corp.google.com/i/chromium.memory/builders/Linux%20ChromiumOS%20MSan%20Tests/builds/2661

Original change's description:
> Instant cleanup: Remove SearchMode
> 
> It was now just a wrapper around the Origin enum, so let's just use that
> directly.
> 
> Followup to https://chromium-review.googlesource.com/638335
> 
> Bug:  627747 
> Change-Id: I761e17f93817b04fd7841f17e754926bfcd7fcec
> Reviewed-on: https://chromium-review.googlesource.com/640389
> Commit-Queue: Marc Treib <treib@chromium.org>
> Reviewed-by: Chris Pickel <sfiera@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#498410}

TBR=treib@chromium.org,sfiera@chromium.org

Change-Id: I66b53b045d1a70a23d179eabb651fcfe11c954cf
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug:  627747 
Reviewed-on: https://chromium-review.googlesource.com/643427
Reviewed-by: Henrik Boström <hbos@chromium.org>
Commit-Queue: Henrik Boström <hbos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#498489}
[modify] https://crrev.com/0cb75ffabe51a26775dd5879fda79a565cd2d3b4/chrome/browser/ui/browser_instant_controller.cc
[modify] https://crrev.com/0cb75ffabe51a26775dd5879fda79a565cd2d3b4/chrome/browser/ui/browser_instant_controller.h
[modify] https://crrev.com/0cb75ffabe51a26775dd5879fda79a565cd2d3b4/chrome/browser/ui/search/instant_controller.cc
[modify] https://crrev.com/0cb75ffabe51a26775dd5879fda79a565cd2d3b4/chrome/browser/ui/search/instant_controller.h
[modify] https://crrev.com/0cb75ffabe51a26775dd5879fda79a565cd2d3b4/chrome/browser/ui/search/search_delegate.cc
[modify] https://crrev.com/0cb75ffabe51a26775dd5879fda79a565cd2d3b4/chrome/browser/ui/search/search_delegate.h
[modify] https://crrev.com/0cb75ffabe51a26775dd5879fda79a565cd2d3b4/chrome/browser/ui/search/search_delegate_unittest.cc
[modify] https://crrev.com/0cb75ffabe51a26775dd5879fda79a565cd2d3b4/chrome/browser/ui/search/search_model.cc
[modify] https://crrev.com/0cb75ffabe51a26775dd5879fda79a565cd2d3b4/chrome/browser/ui/search/search_model.h
[modify] https://crrev.com/0cb75ffabe51a26775dd5879fda79a565cd2d3b4/chrome/browser/ui/search/search_model_observer.h
[modify] https://crrev.com/0cb75ffabe51a26775dd5879fda79a565cd2d3b4/chrome/browser/ui/search/search_model_unittest.cc
[modify] https://crrev.com/0cb75ffabe51a26775dd5879fda79a565cd2d3b4/chrome/browser/ui/search/search_tab_helper.cc
[modify] https://crrev.com/0cb75ffabe51a26775dd5879fda79a565cd2d3b4/chrome/common/BUILD.gn
[add] https://crrev.com/0cb75ffabe51a26775dd5879fda79a565cd2d3b4/chrome/common/search/search_types.h

Project Member

Comment 62 by bugdroid1@chromium.org, Aug 31 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/191fb826b3cff42b6b5c874098a0dca7f058ac5b

commit 191fb826b3cff42b6b5c874098a0dca7f058ac5b
Author: Marc Treib <treib@chromium.org>
Date: Thu Aug 31 14:25:01 2017

Reland "Instant cleanup: Remove SearchMode"

This is a reland of 18a0e5d1d3cdcd8a89cde8d6bfc726ad32f0edf9 which was
reverted at https://chromium-review.googlesource.com/643427 due to a
use-of-uninitialized-value, which is fixed in PS2 here.

Original change's description:
> Instant cleanup: Remove SearchMode
> 
> It was now just a wrapper around the Origin enum, so let's just use that
> directly.
> 
> Followup to https://chromium-review.googlesource.com/638335
> 
> Bug:  627747 
> Change-Id: I761e17f93817b04fd7841f17e754926bfcd7fcec
> Reviewed-on: https://chromium-review.googlesource.com/640389
> Commit-Queue: Marc Treib <treib@chromium.org>
> Reviewed-by: Chris Pickel <sfiera@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#498410}

Bug:  627747 
Change-Id: Iad49a8e49063284ea5baa36a4041a31869b890e5
Reviewed-on: https://chromium-review.googlesource.com/643511
Reviewed-by: Chris Pickel <sfiera@chromium.org>
Commit-Queue: Marc Treib <treib@chromium.org>
Cr-Commit-Position: refs/heads/master@{#498856}
[modify] https://crrev.com/191fb826b3cff42b6b5c874098a0dca7f058ac5b/chrome/browser/ui/browser_instant_controller.cc
[modify] https://crrev.com/191fb826b3cff42b6b5c874098a0dca7f058ac5b/chrome/browser/ui/browser_instant_controller.h
[modify] https://crrev.com/191fb826b3cff42b6b5c874098a0dca7f058ac5b/chrome/browser/ui/search/instant_controller.cc
[modify] https://crrev.com/191fb826b3cff42b6b5c874098a0dca7f058ac5b/chrome/browser/ui/search/instant_controller.h
[modify] https://crrev.com/191fb826b3cff42b6b5c874098a0dca7f058ac5b/chrome/browser/ui/search/search_delegate.cc
[modify] https://crrev.com/191fb826b3cff42b6b5c874098a0dca7f058ac5b/chrome/browser/ui/search/search_delegate.h
[modify] https://crrev.com/191fb826b3cff42b6b5c874098a0dca7f058ac5b/chrome/browser/ui/search/search_delegate_unittest.cc
[modify] https://crrev.com/191fb826b3cff42b6b5c874098a0dca7f058ac5b/chrome/browser/ui/search/search_model.cc
[modify] https://crrev.com/191fb826b3cff42b6b5c874098a0dca7f058ac5b/chrome/browser/ui/search/search_model.h
[modify] https://crrev.com/191fb826b3cff42b6b5c874098a0dca7f058ac5b/chrome/browser/ui/search/search_model_observer.h
[modify] https://crrev.com/191fb826b3cff42b6b5c874098a0dca7f058ac5b/chrome/browser/ui/search/search_model_unittest.cc
[modify] https://crrev.com/191fb826b3cff42b6b5c874098a0dca7f058ac5b/chrome/browser/ui/search/search_tab_helper.cc
[modify] https://crrev.com/191fb826b3cff42b6b5c874098a0dca7f058ac5b/chrome/common/BUILD.gn
[delete] https://crrev.com/bd4a95ee10a03c861d3c4a7776a10deadd59e5bd/chrome/common/search/search_types.h

Project Member

Comment 63 by bugdroid1@chromium.org, Sep 4 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/be5f3feb13898aadc116c2754394c9e8e2951703

commit be5f3feb13898aadc116c2754394c9e8e2951703
Author: Marc Treib <treib@chromium.org>
Date: Mon Sep 04 09:53:16 2017

Cleanup: Remove InstantSearchPrerenderer and supporting code

Both prerendering and Instant have been unlaunched, time to get rid of
the code. There's probably a lot more supporting code that can be
removed or vastly simplified, but this is enough for one CL.

Bug:  627747 , 755921
Change-Id: I858134e04d82dbef7c1b3c58f0150081eab335f8
Reviewed-on: https://chromium-review.googlesource.com/623649
Commit-Queue: Marc Treib <treib@chromium.org>
Reviewed-by: Peter Kasting <pkasting@chromium.org>
Reviewed-by: Egor Pasko <pasko@chromium.org>
Cr-Commit-Position: refs/heads/master@{#499467}
[modify] https://crrev.com/be5f3feb13898aadc116c2754394c9e8e2951703/chrome/browser/search/instant_service.cc
[modify] https://crrev.com/be5f3feb13898aadc116c2754394c9e8e2951703/chrome/browser/search/instant_service.h
[modify] https://crrev.com/be5f3feb13898aadc116c2754394c9e8e2951703/chrome/browser/search/instant_service_unittest.cc
[modify] https://crrev.com/be5f3feb13898aadc116c2754394c9e8e2951703/chrome/browser/search/search.cc
[modify] https://crrev.com/be5f3feb13898aadc116c2754394c9e8e2951703/chrome/browser/ui/BUILD.gn
[modify] https://crrev.com/be5f3feb13898aadc116c2754394c9e8e2951703/chrome/browser/ui/browser.cc
[modify] https://crrev.com/be5f3feb13898aadc116c2754394c9e8e2951703/chrome/browser/ui/browser_commands.cc
[modify] https://crrev.com/be5f3feb13898aadc116c2754394c9e8e2951703/chrome/browser/ui/browser_instant_controller.cc
[modify] https://crrev.com/be5f3feb13898aadc116c2754394c9e8e2951703/chrome/browser/ui/browser_instant_controller.h
[modify] https://crrev.com/be5f3feb13898aadc116c2754394c9e8e2951703/chrome/browser/ui/browser_navigator.cc
[modify] https://crrev.com/be5f3feb13898aadc116c2754394c9e8e2951703/chrome/browser/ui/omnibox/chrome_omnibox_client.cc
[modify] https://crrev.com/be5f3feb13898aadc116c2754394c9e8e2951703/chrome/browser/ui/omnibox/chrome_omnibox_client.h
[delete] https://crrev.com/e6155ec13276967f56b21c9da9832502f87b9c58/chrome/browser/ui/search/instant_search_prerenderer.cc
[delete] https://crrev.com/e6155ec13276967f56b21c9da9832502f87b9c58/chrome/browser/ui/search/instant_search_prerenderer.h
[delete] https://crrev.com/e6155ec13276967f56b21c9da9832502f87b9c58/chrome/browser/ui/search/instant_search_prerenderer_unittest.cc
[modify] https://crrev.com/be5f3feb13898aadc116c2754394c9e8e2951703/chrome/test/BUILD.gn

Project Member

Comment 64 by bugdroid1@chromium.org, Sep 4 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/d000cbf5c08cbce50b31de24f0cd1cfd364ff3df

commit d000cbf5c08cbce50b31de24f0cd1cfd364ff3df
Author: Marc Treib <treib@chromium.org>
Date: Mon Sep 04 13:10:42 2017

Cleanup: Remove unused parts of Instant

After https://chromium-review.googlesource.com/623649 (removing
InstantSearchPrerenderer), parts of Instant have become unused. This CL
removes unused plumbing and types. The actual API endpoints (in
searchbox_api.js) are left in place for now; those will be removed in a
followup.

Bug:  627747 
Change-Id: If792081ab7ebe476e78a1df39e408c26123cae8b
Reviewed-on: https://chromium-review.googlesource.com/628457
Commit-Queue: Marc Treib <treib@chromium.org>
Reviewed-by: Peter Kasting <pkasting@chromium.org>
Reviewed-by: Oliver Chang <ochang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#499491}
[modify] https://crrev.com/d000cbf5c08cbce50b31de24f0cd1cfd364ff3df/chrome/browser/ui/search/search_ipc_router.cc
[modify] https://crrev.com/d000cbf5c08cbce50b31de24f0cd1cfd364ff3df/chrome/browser/ui/search/search_ipc_router.h
[modify] https://crrev.com/d000cbf5c08cbce50b31de24f0cd1cfd364ff3df/chrome/browser/ui/search/search_ipc_router_policy_impl.cc
[modify] https://crrev.com/d000cbf5c08cbce50b31de24f0cd1cfd364ff3df/chrome/browser/ui/search/search_ipc_router_policy_impl.h
[modify] https://crrev.com/d000cbf5c08cbce50b31de24f0cd1cfd364ff3df/chrome/browser/ui/search/search_ipc_router_policy_unittest.cc
[modify] https://crrev.com/d000cbf5c08cbce50b31de24f0cd1cfd364ff3df/chrome/browser/ui/search/search_ipc_router_unittest.cc
[modify] https://crrev.com/d000cbf5c08cbce50b31de24f0cd1cfd364ff3df/chrome/browser/ui/search/search_tab_helper.cc
[modify] https://crrev.com/d000cbf5c08cbce50b31de24f0cd1cfd364ff3df/chrome/browser/ui/search/search_tab_helper.h
[modify] https://crrev.com/d000cbf5c08cbce50b31de24f0cd1cfd364ff3df/chrome/common/instant_struct_traits.h
[modify] https://crrev.com/d000cbf5c08cbce50b31de24f0cd1cfd364ff3df/chrome/common/search.mojom
[modify] https://crrev.com/d000cbf5c08cbce50b31de24f0cd1cfd364ff3df/chrome/common/search.typemap
[modify] https://crrev.com/d000cbf5c08cbce50b31de24f0cd1cfd364ff3df/chrome/common/search/instant_types.cc
[modify] https://crrev.com/d000cbf5c08cbce50b31de24f0cd1cfd364ff3df/chrome/common/search/instant_types.h
[delete] https://crrev.com/6602dc00ada77a345bb1bce106b45b77c2ad764c/chrome/common/search/instant_types_unittest.cc
[modify] https://crrev.com/d000cbf5c08cbce50b31de24f0cd1cfd364ff3df/chrome/common/search/mock_embedded_search_client.h
[modify] https://crrev.com/d000cbf5c08cbce50b31de24f0cd1cfd364ff3df/chrome/renderer/searchbox/searchbox.cc
[modify] https://crrev.com/d000cbf5c08cbce50b31de24f0cd1cfd364ff3df/chrome/renderer/searchbox/searchbox.h
[modify] https://crrev.com/d000cbf5c08cbce50b31de24f0cd1cfd364ff3df/chrome/renderer/searchbox/searchbox_extension.cc
[modify] https://crrev.com/d000cbf5c08cbce50b31de24f0cd1cfd364ff3df/chrome/renderer/searchbox/searchbox_extension.h
[modify] https://crrev.com/d000cbf5c08cbce50b31de24f0cd1cfd364ff3df/chrome/test/BUILD.gn

Project Member

Comment 65 by bugdroid1@chromium.org, Sep 5 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/45d216827766f077e866a8e69440488823a51fa9

commit 45d216827766f077e866a8e69440488823a51fa9
Author: Marc Treib <treib@chromium.org>
Date: Tue Sep 05 12:35:05 2017

Cleanup: Remove obsolete InstantExtended interactive_ui_tests

After https://chromium-review.googlesource.com/623649 and
https://chromium-review.googlesource.com/628457, a whole bunch of the
InstantExtended tests don't make sense anymore.

Bug:  627747 
Change-Id: Iea65abb353d82836e547b30b3bb1874ba8624d3f
Reviewed-on: https://chromium-review.googlesource.com/643291
Reviewed-by: Chris Pickel <sfiera@chromium.org>
Commit-Queue: Marc Treib <treib@chromium.org>
Cr-Commit-Position: refs/heads/master@{#499608}
[modify] https://crrev.com/45d216827766f077e866a8e69440488823a51fa9/chrome/browser/ui/search/instant_extended_interactive_uitest.cc
[modify] https://crrev.com/45d216827766f077e866a8e69440488823a51fa9/chrome/test/data/instant_extended.html
[modify] https://crrev.com/45d216827766f077e866a8e69440488823a51fa9/chrome/test/data/instant_extended_ntp.html

Project Member

Comment 66 by bugdroid1@chromium.org, Sep 5 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/3d34a3d4af6dae4bac229c03913b32fed7a90bbf

commit 3d34a3d4af6dae4bac229c03913b32fed7a90bbf
Author: Marc Treib <treib@chromium.org>
Date: Tue Sep 05 12:35:40 2017

Cleanup: Remove unused Instant util functions

This removes GetInstantURL and GetSearchResultPrefetchBaseURL entirely,
inlines IsSuitableURLForInstant into its one call site, and makes
ExtractSearchTermsFromURL private.

Bug:  627747 
Change-Id: I0316d5a862868d3e585cb368b44726a9952063a7
Reviewed-on: https://chromium-review.googlesource.com/649510
Reviewed-by: Chris Pickel <sfiera@chromium.org>
Commit-Queue: Marc Treib <treib@chromium.org>
Cr-Commit-Position: refs/heads/master@{#499609}
[modify] https://crrev.com/3d34a3d4af6dae4bac229c03913b32fed7a90bbf/chrome/browser/search/search.cc
[modify] https://crrev.com/3d34a3d4af6dae4bac229c03913b32fed7a90bbf/chrome/browser/search/search.h
[modify] https://crrev.com/3d34a3d4af6dae4bac229c03913b32fed7a90bbf/chrome/browser/search/search_unittest.cc

Project Member

Comment 67 by bugdroid1@chromium.org, Sep 5 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/c4de3f1f52edd852381c4e6bbd74503dfe896382

commit c4de3f1f52edd852381c4e6bbd74503dfe896382
Author: Marc Treib <treib@chromium.org>
Date: Tue Sep 05 12:36:15 2017

Move SearchEngineBaseURLTracker from InstantService to BrowserInstantController

After https://chromium-review.googlesource.com/623649, InstantService
itself doesn't need this anymore, and BrowserInstantController is the
only client that does. So no need to pipe things through
InstantServiceObserver.

Bug:  627747 
Change-Id: Ie4fcb89ce4b2ae33592365addeb8bdc4480f8a8a
Reviewed-on: https://chromium-review.googlesource.com/628717
Reviewed-by: Chris Pickel <sfiera@chromium.org>
Commit-Queue: Marc Treib <treib@chromium.org>
Cr-Commit-Position: refs/heads/master@{#499610}
[modify] https://crrev.com/c4de3f1f52edd852381c4e6bbd74503dfe896382/chrome/browser/search/instant_service.cc
[modify] https://crrev.com/c4de3f1f52edd852381c4e6bbd74503dfe896382/chrome/browser/search/instant_service.h
[modify] https://crrev.com/c4de3f1f52edd852381c4e6bbd74503dfe896382/chrome/browser/search/instant_service_observer.cc
[modify] https://crrev.com/c4de3f1f52edd852381c4e6bbd74503dfe896382/chrome/browser/search/instant_service_observer.h
[modify] https://crrev.com/c4de3f1f52edd852381c4e6bbd74503dfe896382/chrome/browser/search/instant_service_unittest.cc
[modify] https://crrev.com/c4de3f1f52edd852381c4e6bbd74503dfe896382/chrome/browser/search/instant_unittest_base.cc
[modify] https://crrev.com/c4de3f1f52edd852381c4e6bbd74503dfe896382/chrome/browser/search/instant_unittest_base.h
[add] https://crrev.com/c4de3f1f52edd852381c4e6bbd74503dfe896382/chrome/browser/search/search_engine_base_url_tracker_unittest.cc
[modify] https://crrev.com/c4de3f1f52edd852381c4e6bbd74503dfe896382/chrome/browser/ui/browser_instant_controller.cc
[modify] https://crrev.com/c4de3f1f52edd852381c4e6bbd74503dfe896382/chrome/browser/ui/browser_instant_controller.h
[modify] https://crrev.com/c4de3f1f52edd852381c4e6bbd74503dfe896382/chrome/browser/ui/browser_instant_controller_unittest.cc
[modify] https://crrev.com/c4de3f1f52edd852381c4e6bbd74503dfe896382/chrome/test/BUILD.gn

Project Member

Comment 68 by bugdroid1@chromium.org, Sep 5 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/9fa2a55d3a3dcbc353690dd56737193846f58ef6

commit 9fa2a55d3a3dcbc353690dd56737193846f58ef6
Author: Marc Treib <treib@chromium.org>
Date: Tue Sep 05 16:33:02 2017

Cleanup: Remove even more obsolete InstantExtended interactive_ui_tests

Bug:  627747 
Change-Id: Iaa03ddb991650b175c5a1e1121d2cc2c515699f6
Reviewed-on: https://chromium-review.googlesource.com/650254
Reviewed-by: Chris Pickel <sfiera@chromium.org>
Commit-Queue: Marc Treib <treib@chromium.org>
Cr-Commit-Position: refs/heads/master@{#499652}
[modify] https://crrev.com/9fa2a55d3a3dcbc353690dd56737193846f58ef6/chrome/browser/ui/search/instant_extended_interactive_uitest.cc
[modify] https://crrev.com/9fa2a55d3a3dcbc353690dd56737193846f58ef6/chrome/browser/ui/search/instant_uitest_base.cc
[modify] https://crrev.com/9fa2a55d3a3dcbc353690dd56737193846f58ef6/chrome/browser/ui/search/instant_uitest_base.h

Project Member

Comment 69 by bugdroid1@chromium.org, Sep 6 2017

Project Member

Comment 70 by bugdroid1@chromium.org, Sep 7 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/168702db9e7ed58bad203affa30e02a4237926e4

commit 168702db9e7ed58bad203affa30e02a4237926e4
Author: Marc Treib <treib@chromium.org>
Date: Thu Sep 07 13:44:47 2017

Cleanup: Remove unused parts of embeddedSearch API

This removes the following APIs from embeddedSearch.searchBox:
- suggestion
- requestParams
- onsubmit
- onsuggestionchange

The actual implementation behind these APIs was removed in
https://chromium-review.googlesource.com/628457 (and unused even before
that). This CL also removes the actual API entry points.

Bug:  627747 
Change-Id: Ic898bcd24dd97717a50316f655551a8fcdcab252
Reviewed-on: https://chromium-review.googlesource.com/643290
Reviewed-by: Chris Pickel <sfiera@chromium.org>
Commit-Queue: Marc Treib <treib@chromium.org>
Cr-Commit-Position: refs/heads/master@{#500290}
[modify] https://crrev.com/168702db9e7ed58bad203affa30e02a4237926e4/chrome/renderer/resources/extensions/searchbox_api.js
[modify] https://crrev.com/168702db9e7ed58bad203affa30e02a4237926e4/chrome/renderer/searchbox/searchbox_extension.cc

Project Member

Comment 71 by bugdroid1@chromium.org, Sep 21 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/ec42aaaf6a71aad5b553c3e222eaea62deda261b

commit ec42aaaf6a71aad5b553c3e222eaea62deda261b
Author: Marc Treib <treib@chromium.org>
Date: Thu Sep 21 15:15:27 2017

Search engines: Remove instant_url and search_terms_replacement_key

These aren't used anymore since Instant prerendering was removed.
Lots of touched files, but mostly mechanical changes.

TBRing trivial/mechanical changes in search_provider_unittest.cc,
policy_browsertest.cc, and zero_suggest_provider_unittest.cc.
TBR=pkasting

Bug:  627747 ,  476079 
Change-Id: Ib896e24cb7d229c0bd08edd98e9807d89c8e17c5
Reviewed-on: https://chromium-review.googlesource.com/668452
Commit-Queue: Marc Treib <treib@chromium.org>
Reviewed-by: Vasilii Sukhanov <vasilii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#503452}
[modify] https://crrev.com/ec42aaaf6a71aad5b553c3e222eaea62deda261b/chrome/browser/autocomplete/search_provider_unittest.cc
[modify] https://crrev.com/ec42aaaf6a71aad5b553c3e222eaea62deda261b/chrome/browser/extensions/api/settings_overrides/settings_overrides_api.cc
[modify] https://crrev.com/ec42aaaf6a71aad5b553c3e222eaea62deda261b/chrome/browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc
[modify] https://crrev.com/ec42aaaf6a71aad5b553c3e222eaea62deda261b/chrome/browser/policy/policy_browsertest.cc
[modify] https://crrev.com/ec42aaaf6a71aad5b553c3e222eaea62deda261b/chrome/browser/search/instant_unittest_base.cc
[modify] https://crrev.com/ec42aaaf6a71aad5b553c3e222eaea62deda261b/chrome/browser/search/search.cc
[modify] https://crrev.com/ec42aaaf6a71aad5b553c3e222eaea62deda261b/chrome/browser/search/search_unittest.cc
[modify] https://crrev.com/ec42aaaf6a71aad5b553c3e222eaea62deda261b/chrome/browser/search_engines/template_url_service_sync_unittest.cc
[modify] https://crrev.com/ec42aaaf6a71aad5b553c3e222eaea62deda261b/chrome/browser/search_engines/template_url_service_unittest.cc
[modify] https://crrev.com/ec42aaaf6a71aad5b553c3e222eaea62deda261b/chrome/browser/ui/search/instant_extended_interactive_uitest.cc
[modify] https://crrev.com/ec42aaaf6a71aad5b553c3e222eaea62deda261b/chrome/browser/ui/search/instant_test_base.cc
[modify] https://crrev.com/ec42aaaf6a71aad5b553c3e222eaea62deda261b/chrome/browser/ui/search/instant_test_base.h
[modify] https://crrev.com/ec42aaaf6a71aad5b553c3e222eaea62deda261b/chrome/browser/ui/search/local_ntp_uitest.cc
[modify] https://crrev.com/ec42aaaf6a71aad5b553c3e222eaea62deda261b/chrome/browser/ui/search/search_ipc_router_unittest.cc
[modify] https://crrev.com/ec42aaaf6a71aad5b553c3e222eaea62deda261b/components/omnibox/browser/zero_suggest_provider_unittest.cc
[modify] https://crrev.com/ec42aaaf6a71aad5b553c3e222eaea62deda261b/components/search_engines/default_search_manager.cc
[modify] https://crrev.com/ec42aaaf6a71aad5b553c3e222eaea62deda261b/components/search_engines/default_search_manager.h
[modify] https://crrev.com/ec42aaaf6a71aad5b553c3e222eaea62deda261b/components/search_engines/default_search_manager_unittest.cc
[modify] https://crrev.com/ec42aaaf6a71aad5b553c3e222eaea62deda261b/components/search_engines/default_search_policy_handler.cc
[modify] https://crrev.com/ec42aaaf6a71aad5b553c3e222eaea62deda261b/components/search_engines/default_search_policy_handler_unittest.cc
[modify] https://crrev.com/ec42aaaf6a71aad5b553c3e222eaea62deda261b/components/search_engines/keyword_table.cc
[modify] https://crrev.com/ec42aaaf6a71aad5b553c3e222eaea62deda261b/components/search_engines/keyword_table_unittest.cc
[modify] https://crrev.com/ec42aaaf6a71aad5b553c3e222eaea62deda261b/components/search_engines/prepopulated_engines.json
[modify] https://crrev.com/ec42aaaf6a71aad5b553c3e222eaea62deda261b/components/search_engines/prepopulated_engines_schema.json
[modify] https://crrev.com/ec42aaaf6a71aad5b553c3e222eaea62deda261b/components/search_engines/search_engines_test_util.cc
[modify] https://crrev.com/ec42aaaf6a71aad5b553c3e222eaea62deda261b/components/search_engines/template_url.cc
[modify] https://crrev.com/ec42aaaf6a71aad5b553c3e222eaea62deda261b/components/search_engines/template_url.h
[modify] https://crrev.com/ec42aaaf6a71aad5b553c3e222eaea62deda261b/components/search_engines/template_url_data.cc
[modify] https://crrev.com/ec42aaaf6a71aad5b553c3e222eaea62deda261b/components/search_engines/template_url_data.h
[modify] https://crrev.com/ec42aaaf6a71aad5b553c3e222eaea62deda261b/components/search_engines/template_url_data_util.cc
[modify] https://crrev.com/ec42aaaf6a71aad5b553c3e222eaea62deda261b/components/search_engines/template_url_prepopulate_data_unittest.cc
[modify] https://crrev.com/ec42aaaf6a71aad5b553c3e222eaea62deda261b/components/search_engines/template_url_service.cc
[modify] https://crrev.com/ec42aaaf6a71aad5b553c3e222eaea62deda261b/components/search_engines/template_url_unittest.cc

Project Member

Comment 72 by bugdroid1@chromium.org, Sep 25 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/765daed1599d145847229bc4326f6c7e9f07ed76

commit 765daed1599d145847229bc4326f6c7e9f07ed76
Author: Marc Treib <treib@chromium.org>
Date: Mon Sep 25 08:44:57 2017

Cleanup KeywordTable: Remove Instant-related columns

This is a follow-up to crrev.com/c/668452, which removed the data that
filled those columns, but left the actual columns in place. This CL
actually removes the columns instant_url, instant_url_post_params, and
search_terms_replacement_key from the database and adds migration logic.

Bug:  627747 ,  476079 
Change-Id: Iaebc14b37b28135eccf2db43cc561a22788a8b4e
Reviewed-on: https://chromium-review.googlesource.com/677295
Reviewed-by: Vasilii Sukhanov <vasilii@chromium.org>
Reviewed-by: Cait Phillips <caitkp@chromium.org>
Commit-Queue: Marc Treib <treib@chromium.org>
Cr-Commit-Position: refs/heads/master@{#504008}
[modify] https://crrev.com/765daed1599d145847229bc4326f6c7e9f07ed76/components/search_engines/keyword_table.cc
[modify] https://crrev.com/765daed1599d145847229bc4326f6c7e9f07ed76/components/search_engines/keyword_table.h
[add] https://crrev.com/765daed1599d145847229bc4326f6c7e9f07ed76/components/test/data/web_database/version_75.sql
[modify] https://crrev.com/765daed1599d145847229bc4326f6c7e9f07ed76/components/webdata/common/BUILD.gn
[modify] https://crrev.com/765daed1599d145847229bc4326f6c7e9f07ed76/components/webdata/common/web_database.cc
[modify] https://crrev.com/765daed1599d145847229bc4326f6c7e9f07ed76/components/webdata/common/web_database_migration_unittest.cc

Project Member

Comment 73 by bugdroid1@chromium.org, Sep 25 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/840eada32086bdaf8b33e8c7fcc49aaef6db0dd8

commit 840eada32086bdaf8b33e8c7fcc49aaef6db0dd8
Author: Marc Treib <treib@chromium.org>
Date: Mon Sep 25 13:05:45 2017

Instant cleanup: Remove unused params from SearchTermsData

As of crrev.com/c/668452, InstantExtendedEnabledParam and
ForceInstantResultsParam aren't used anymore.

Bug:  627747 ,  476079 
Change-Id: I11f6d9c0e1b69e68265cf75cb0b7010ffed11fa3
Reviewed-on: https://chromium-review.googlesource.com/678717
Reviewed-by: Vasilii Sukhanov <vasilii@chromium.org>
Reviewed-by: Mark Pearson <mpearson@chromium.org>
Reviewed-by: David Roger <droger@chromium.org>
Commit-Queue: Marc Treib <treib@chromium.org>
Cr-Commit-Position: refs/heads/master@{#504038}
[modify] https://crrev.com/840eada32086bdaf8b33e8c7fcc49aaef6db0dd8/chrome/browser/search_engines/ui_thread_search_terms_data.cc
[modify] https://crrev.com/840eada32086bdaf8b33e8c7fcc49aaef6db0dd8/chrome/browser/search_engines/ui_thread_search_terms_data.h
[modify] https://crrev.com/840eada32086bdaf8b33e8c7fcc49aaef6db0dd8/components/omnibox/browser/history_url_provider.cc
[modify] https://crrev.com/840eada32086bdaf8b33e8c7fcc49aaef6db0dd8/components/search/search.cc
[modify] https://crrev.com/840eada32086bdaf8b33e8c7fcc49aaef6db0dd8/components/search/search.h
[modify] https://crrev.com/840eada32086bdaf8b33e8c7fcc49aaef6db0dd8/components/search/search_unittest.cc
[modify] https://crrev.com/840eada32086bdaf8b33e8c7fcc49aaef6db0dd8/components/search_engines/search_terms_data.cc
[modify] https://crrev.com/840eada32086bdaf8b33e8c7fcc49aaef6db0dd8/components/search_engines/search_terms_data.h
[modify] https://crrev.com/840eada32086bdaf8b33e8c7fcc49aaef6db0dd8/ios/chrome/browser/search_engines/ui_thread_search_terms_data.cc
[modify] https://crrev.com/840eada32086bdaf8b33e8c7fcc49aaef6db0dd8/ios/chrome/browser/search_engines/ui_thread_search_terms_data.h

Project Member

Comment 74 by bugdroid1@chromium.org, Sep 26 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/7376bd82c08baa6dd97f229efed3ade4a80f853e

commit 7376bd82c08baa6dd97f229efed3ade4a80f853e
Author: Marc Treib <treib@chromium.org>
Date: Tue Sep 26 08:03:20 2017

Instant: Move SearchModel and SearchDelegate out of Browser

...and into BrowserInstantController. This reduces the number of
"Instant things" that Browser has to know about from 4 to 2.

Bug:  627747 
Change-Id: I1d9dbfe37bda88e59ce6fa4759f8b3a8428eaacc
Reviewed-on: https://chromium-review.googlesource.com/678502
Reviewed-by: Michael Wasserman <msw@chromium.org>
Reviewed-by: Chris Pickel <sfiera@chromium.org>
Commit-Queue: Marc Treib <treib@chromium.org>
Cr-Commit-Position: refs/heads/master@{#504309}
[modify] https://crrev.com/7376bd82c08baa6dd97f229efed3ade4a80f853e/chrome/browser/ui/browser.cc
[modify] https://crrev.com/7376bd82c08baa6dd97f229efed3ade4a80f853e/chrome/browser/ui/browser.h
[modify] https://crrev.com/7376bd82c08baa6dd97f229efed3ade4a80f853e/chrome/browser/ui/browser_instant_controller.cc
[modify] https://crrev.com/7376bd82c08baa6dd97f229efed3ade4a80f853e/chrome/browser/ui/browser_instant_controller.h
[modify] https://crrev.com/7376bd82c08baa6dd97f229efed3ade4a80f853e/chrome/browser/ui/search/instant_controller.cc
[modify] https://crrev.com/7376bd82c08baa6dd97f229efed3ade4a80f853e/chrome/browser/ui/search/instant_controller.h
[modify] https://crrev.com/7376bd82c08baa6dd97f229efed3ade4a80f853e/chrome/browser/ui/search/search_delegate_unittest.cc

Project Member

Comment 75 by bugdroid1@chromium.org, Sep 26 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/bfe0171fda86bfc8871e3bdcc19b7a5842aa064c

commit bfe0171fda86bfc8871e3bdcc19b7a5842aa064c
Author: Marc Treib <treib@chromium.org>
Date: Tue Sep 26 11:49:45 2017

Instant cleanup: Remove SearchModel and SearchDelegate

This stuff was a LOT of plumbing, all to eventually determine "is the
current tab an NTP?". That can be had MUCH simpler :)

Before:
SearchTabHelper (per-tab) has a SearchModel and updates that with the
"isNTP" state. The state for the active tab gets propagated via
SearchDelegate to BrowserInstantController's SearchModel instance.
InstantController listens for changes to that, and on non-NTP->NTP
transitions sends the "Instant info" (i.e. MV tiles and theme) to the
Instant process.

After:
InstantController watches for relevant navigations itself and just
checks the "isNTP" state directly. Several kilometers of plumbing are
removed, and there is much rejoicing.

Manually tested the following cases:
- Navigating regular page <-> remote NTP
- Navigating regular page <-> local NTP
- Navigating local NTP <-> remote NTP
All these for regular and forward/back navigations, and for Google and
third-party DSE.

Bug:  627747 
Change-Id: Id55b1f28550b4aeee1e5472ac0e8eebd0ee0d65c
Reviewed-on: https://chromium-review.googlesource.com/678719
Reviewed-by: Chris Pickel <sfiera@chromium.org>
Commit-Queue: Marc Treib <treib@chromium.org>
Cr-Commit-Position: refs/heads/master@{#504342}
[modify] https://crrev.com/bfe0171fda86bfc8871e3bdcc19b7a5842aa064c/chrome/browser/search/search.h
[modify] https://crrev.com/bfe0171fda86bfc8871e3bdcc19b7a5842aa064c/chrome/browser/ui/BUILD.gn
[modify] https://crrev.com/bfe0171fda86bfc8871e3bdcc19b7a5842aa064c/chrome/browser/ui/browser_instant_controller.cc
[modify] https://crrev.com/bfe0171fda86bfc8871e3bdcc19b7a5842aa064c/chrome/browser/ui/browser_instant_controller.h
[modify] https://crrev.com/bfe0171fda86bfc8871e3bdcc19b7a5842aa064c/chrome/browser/ui/browser_instant_controller_unittest.cc
[modify] https://crrev.com/bfe0171fda86bfc8871e3bdcc19b7a5842aa064c/chrome/browser/ui/search/instant_controller.cc
[modify] https://crrev.com/bfe0171fda86bfc8871e3bdcc19b7a5842aa064c/chrome/browser/ui/search/instant_controller.h
[delete] https://crrev.com/d6420b4e2244ce85ecf43a3155eec5b35081135e/chrome/browser/ui/search/search_delegate.cc
[delete] https://crrev.com/d6420b4e2244ce85ecf43a3155eec5b35081135e/chrome/browser/ui/search/search_delegate.h
[delete] https://crrev.com/d6420b4e2244ce85ecf43a3155eec5b35081135e/chrome/browser/ui/search/search_delegate_unittest.cc
[delete] https://crrev.com/d6420b4e2244ce85ecf43a3155eec5b35081135e/chrome/browser/ui/search/search_model.cc
[delete] https://crrev.com/d6420b4e2244ce85ecf43a3155eec5b35081135e/chrome/browser/ui/search/search_model.h
[delete] https://crrev.com/d6420b4e2244ce85ecf43a3155eec5b35081135e/chrome/browser/ui/search/search_model_observer.h
[delete] https://crrev.com/d6420b4e2244ce85ecf43a3155eec5b35081135e/chrome/browser/ui/search/search_model_unittest.cc
[modify] https://crrev.com/bfe0171fda86bfc8871e3bdcc19b7a5842aa064c/chrome/browser/ui/search/search_tab_helper.cc
[modify] https://crrev.com/bfe0171fda86bfc8871e3bdcc19b7a5842aa064c/chrome/browser/ui/search/search_tab_helper.h
[modify] https://crrev.com/bfe0171fda86bfc8871e3bdcc19b7a5842aa064c/chrome/test/BUILD.gn

Project Member

Comment 76 by bugdroid1@chromium.org, Sep 26 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/1edbb044715aa20261b4a185caee39a4c9319687

commit 1edbb044715aa20261b4a185caee39a4c9319687
Author: Marc Treib <treib@chromium.org>
Date: Tue Sep 26 16:24:36 2017

Instant cleanup: Remove debug log from chrome://instant

After crrev.com/c/678719, the debug log isn't populated anymore (and
even before that, the logged events weren't particularly meaningful
anymore).

Bug:  627747 
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: Iff770ddb5f7867ae36b3e8cacbac480707654aeb
Reviewed-on: https://chromium-review.googlesource.com/678721
Reviewed-by: Bernhard Bauer <bauerb@chromium.org>
Commit-Queue: Marc Treib <treib@chromium.org>
Cr-Commit-Position: refs/heads/master@{#504387}
[modify] https://crrev.com/1edbb044715aa20261b4a185caee39a4c9319687/chrome/browser/resources/instant/instant.css
[modify] https://crrev.com/1edbb044715aa20261b4a185caee39a4c9319687/chrome/browser/resources/instant/instant.html
[modify] https://crrev.com/1edbb044715aa20261b4a185caee39a4c9319687/chrome/browser/resources/instant/instant.js
[modify] https://crrev.com/1edbb044715aa20261b4a185caee39a4c9319687/chrome/browser/ui/browser_instant_controller.h
[modify] https://crrev.com/1edbb044715aa20261b4a185caee39a4c9319687/chrome/browser/ui/search/instant_controller.cc
[modify] https://crrev.com/1edbb044715aa20261b4a185caee39a4c9319687/chrome/browser/ui/search/instant_controller.h
[modify] https://crrev.com/1edbb044715aa20261b4a185caee39a4c9319687/chrome/browser/ui/webui/instant_ui.cc
[modify] https://crrev.com/1edbb044715aa20261b4a185caee39a4c9319687/chrome/browser/ui/webui/instant_ui.h

Project Member

Comment 77 by bugdroid1@chromium.org, Sep 27 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/f4e8daffb18389c46caa7ebe282e18abc0c953b5

commit f4e8daffb18389c46caa7ebe282e18abc0c953b5
Author: Marc Treib <treib@chromium.org>
Date: Wed Sep 27 08:40:34 2017

Instant cleanup: Implement TabStripModelObserver

Before this CL, BrowserInstantController/InstantController relied on
custom callbacks from Browser to track the active tab. Now,
InstantController implements TabStripModelObserver to directly get
notified of the relevant events.

Bug:  627747 
Change-Id: I28b9b07b9609e6020f68e41e126665dd7ded557b
Reviewed-on: https://chromium-review.googlesource.com/684439
Reviewed-by: Michael Wasserman <msw@chromium.org>
Commit-Queue: Marc Treib <treib@chromium.org>
Cr-Commit-Position: refs/heads/master@{#504601}
[modify] https://crrev.com/f4e8daffb18389c46caa7ebe282e18abc0c953b5/chrome/browser/ui/browser.cc
[modify] https://crrev.com/f4e8daffb18389c46caa7ebe282e18abc0c953b5/chrome/browser/ui/browser_instant_controller.cc
[modify] https://crrev.com/f4e8daffb18389c46caa7ebe282e18abc0c953b5/chrome/browser/ui/browser_instant_controller.h
[modify] https://crrev.com/f4e8daffb18389c46caa7ebe282e18abc0c953b5/chrome/browser/ui/search/instant_controller.cc
[modify] https://crrev.com/f4e8daffb18389c46caa7ebe282e18abc0c953b5/chrome/browser/ui/search/instant_controller.h
[modify] https://crrev.com/f4e8daffb18389c46caa7ebe282e18abc0c953b5/chrome/browser/ui/tabs/tab_strip_model_observer.h

Project Member

Comment 78 by bugdroid1@chromium.org, Sep 28 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/41ed4a4682284e379929281189ede6a9e13a1fb4

commit 41ed4a4682284e379929281189ede6a9e13a1fb4
Author: Marc Treib <treib@chromium.org>
Date: Thu Sep 28 11:07:53 2017

Instant cleanup: Remove ExtractSearchTermsFromURL usage

It was used within an "is NTP" check, to exclude URLs with a "?q=..."
param from being considered NTPs. That maybe made sense when other
pages (SRPs) could also be rendered in an Instant process, but it
certainly doesn't make sense anymore.

Bug:  627747 
Change-Id: Idd74b6bc9d9468b23e84a17f611564204fabd54b
Reviewed-on: https://chromium-review.googlesource.com/685660
Reviewed-by: Chris Pickel <sfiera@chromium.org>
Commit-Queue: Marc Treib <treib@chromium.org>
Cr-Commit-Position: refs/heads/master@{#504965}
[modify] https://crrev.com/41ed4a4682284e379929281189ede6a9e13a1fb4/chrome/browser/search/search.cc

Project Member

Comment 79 by bugdroid1@chromium.org, Oct 2 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/53d7a2a18482458a12cf1a866d7bae0e2d4b590d

commit 53d7a2a18482458a12cf1a866d7bae0e2d4b590d
Author: Marc Treib <treib@chromium.org>
Date: Mon Oct 02 10:25:56 2017

Instant cleanup: Remove no-longer-needed workaround

This CL removes a newTabPage.logEvent call from the multi-iframe version
of the NTP. This call never did any logging, it was just there to force
the "instant support" state of third-party NTPs to "true". The notion of
a page's "instant support" was removed long ago, so this workaround is
no longer needed.

Bug:  627747 ,  698675 
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I89c81c69c8c007a4713897b130d15dd0367fcea0
Reviewed-on: https://chromium-review.googlesource.com/692037
Commit-Queue: Marc Treib <treib@chromium.org>
Reviewed-by: Chris Pickel <sfiera@chromium.org>
Cr-Commit-Position: refs/heads/master@{#505568}
[modify] https://crrev.com/53d7a2a18482458a12cf1a866d7bae0e2d4b590d/chrome/browser/resources/local_ntp/most_visited_util.js
[modify] https://crrev.com/53d7a2a18482458a12cf1a866d7bae0e2d4b590d/chrome/common/search/ntp_logging_events.h

Project Member

Comment 80 by bugdroid1@chromium.org, Oct 4 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/f0f6afc99205acab3f069d915cdad756a52d8809

commit f0f6afc99205acab3f069d915cdad756a52d8809
Author: Marc Treib <treib@chromium.org>
Date: Wed Oct 04 09:05:47 2017

Instant cleanup: Remove references to "espv" and "strk"

Those stand for "embedded search page version" and "search terms
replacement key", and don't do anything anymore.
This CL removes references to them in a bunch of tests, as well as
related constants in google_util.h.

Bug:  627747 ,  476079 
Change-Id: I879e1a54af1554d76f92f8219d859fa4d17f3319
Reviewed-on: https://chromium-review.googlesource.com/686899
Reviewed-by: Chris Pickel <sfiera@chromium.org>
Reviewed-by: Michael Wasserman <msw@chromium.org>
Reviewed-by: Ilya Sherman <isherman@chromium.org>
Reviewed-by: Vasilii Sukhanov <vasilii@chromium.org>
Commit-Queue: Marc Treib <treib@chromium.org>
Cr-Commit-Position: refs/heads/master@{#506342}
[modify] https://crrev.com/f0f6afc99205acab3f069d915cdad756a52d8809/chrome/browser/search/search_unittest.cc
[modify] https://crrev.com/f0f6afc99205acab3f069d915cdad756a52d8809/chrome/browser/ui/browser_instant_controller_unittest.cc
[modify] https://crrev.com/f0f6afc99205acab3f069d915cdad756a52d8809/chrome/browser/ui/search/search_ipc_router_unittest.cc
[modify] https://crrev.com/f0f6afc99205acab3f069d915cdad756a52d8809/chrome/browser/ui/toolbar/toolbar_model_unittest.cc
[modify] https://crrev.com/f0f6afc99205acab3f069d915cdad756a52d8809/chrome/test/data/diagnostics/user/Default/Preferences
[modify] https://crrev.com/f0f6afc99205acab3f069d915cdad756a52d8809/components/google/core/browser/google_util.h
[modify] https://crrev.com/f0f6afc99205acab3f069d915cdad756a52d8809/components/search_engines/template_url_unittest.cc

Project Member

Comment 81 by bugdroid1@chromium.org, Oct 4 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/6593874a60b5694724d6a226ab1b0dfca71052a5

commit 6593874a60b5694724d6a226ab1b0dfca71052a5
Author: Marc Treib <treib@chromium.org>
Date: Wed Oct 04 09:30:35 2017

Instant cleanup: Remove "Search URLs"

Before this CL, a set of "Search URLs" was sent to the renderer, for
potential reassignment to an Instant process. However, these days, only
NTPs are ever rendered in an Instant process. This CL removes the
plumbing for other "Search URLs".

Bug:  627747 
Change-Id: I59c6a80f9c273a62d21ee9b079658bc22e339e51
Reviewed-on: https://chromium-review.googlesource.com/692014
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: James MacLean <wjmaclean@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Marc Treib <treib@chromium.org>
Cr-Commit-Position: refs/heads/master@{#506347}
[modify] https://crrev.com/6593874a60b5694724d6a226ab1b0dfca71052a5/chrome/browser/search/instant_service.cc
[modify] https://crrev.com/6593874a60b5694724d6a226ab1b0dfca71052a5/chrome/browser/search/search.cc
[modify] https://crrev.com/6593874a60b5694724d6a226ab1b0dfca71052a5/chrome/browser/search/search.h
[modify] https://crrev.com/6593874a60b5694724d6a226ab1b0dfca71052a5/chrome/browser/search/search_unittest.cc
[modify] https://crrev.com/6593874a60b5694724d6a226ab1b0dfca71052a5/chrome/common/search.mojom
[modify] https://crrev.com/6593874a60b5694724d6a226ab1b0dfca71052a5/chrome/renderer/chrome_content_renderer_client_browsertest.cc
[modify] https://crrev.com/6593874a60b5694724d6a226ab1b0dfca71052a5/chrome/renderer/chrome_content_renderer_client_unittest.cc
[modify] https://crrev.com/6593874a60b5694724d6a226ab1b0dfca71052a5/chrome/renderer/searchbox/search_bouncer.cc
[modify] https://crrev.com/6593874a60b5694724d6a226ab1b0dfca71052a5/chrome/renderer/searchbox/search_bouncer.h
[modify] https://crrev.com/6593874a60b5694724d6a226ab1b0dfca71052a5/chrome/renderer/searchbox/search_bouncer_unittest.cc
[modify] https://crrev.com/6593874a60b5694724d6a226ab1b0dfca71052a5/extensions/browser/guest_view/web_view/web_view_guest.cc

Project Member

Comment 83 by bugdroid1@chromium.org, Oct 17 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/60697288c63d18e6d32d97c1c321b724367f0e80

commit 60697288c63d18e6d32d97c1c321b724367f0e80
Author: Marc Treib <treib@chromium.org>
Date: Tue Oct 17 08:02:40 2017

Cleanup: Remove unnecessary search::IsInstantExtendedAPIEnabled calls

For a long while now, this method always returns true on desktop and
false on mobile, so any code that's either desktop-only or mobile-only
doesn't need to check it.

Bug:  627747 
Change-Id: I6d1b25ad0e6f2c76a0013725b675e5d059f6cff0
Reviewed-on: https://chromium-review.googlesource.com/720922
Reviewed-by: Vasilii Sukhanov <vasilii@chromium.org>
Reviewed-by: David Roger <droger@chromium.org>
Reviewed-by: calamity <calamity@chromium.org>
Commit-Queue: Marc Treib <treib@chromium.org>
Cr-Commit-Position: refs/heads/master@{#509318}
[modify] https://crrev.com/60697288c63d18e6d32d97c1c321b724367f0e80/chrome/browser/search_engines/ui_thread_search_terms_data.cc
[modify] https://crrev.com/60697288c63d18e6d32d97c1c321b724367f0e80/chrome/browser/ui/webui/md_history_ui.cc
[modify] https://crrev.com/60697288c63d18e6d32d97c1c321b724367f0e80/ios/chrome/browser/search_engines/ui_thread_search_terms_data.cc

Project Member

Comment 84 by bugdroid1@chromium.org, Nov 3 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/e9c53b9c528ffc8ad953c01aeaedfb77c98df508

commit e9c53b9c528ffc8ad953c01aeaedfb77c98df508
Author: Marc Treib <treib@chromium.org>
Date: Fri Nov 03 11:00:55 2017

Cleanup: don't compile embeddedSearch API implementation on Android

According to "tools/binary_size/diagnose_bloat.py HEAD -v", this
reduces apk size by about 24kB:
MonochromePublic.apk_Breakdown (-24,576 bytes)
        -2 bytes Zip Overhead
   -24,576 bytes Native code size
        +2 bytes Package metadata size
MonochromePublic.apk_Specifics
   -24,576 bytes normalized apk size
   -24,576 bytes main lib size

Bug: 778665,  627747 
Change-Id: Ic452176c1345d9d1b7783e38b8019a0974151895
Reviewed-on: https://chromium-review.googlesource.com/743728
Reviewed-by: Jochen Eisinger <jochen@chromium.org>
Commit-Queue: Marc Treib <treib@chromium.org>
Cr-Commit-Position: refs/heads/master@{#513740}
[modify] https://crrev.com/e9c53b9c528ffc8ad953c01aeaedfb77c98df508/chrome/renderer/BUILD.gn
[modify] https://crrev.com/e9c53b9c528ffc8ad953c01aeaedfb77c98df508/chrome/renderer/chrome_content_renderer_client.cc
[modify] https://crrev.com/e9c53b9c528ffc8ad953c01aeaedfb77c98df508/chrome/renderer/chrome_render_frame_observer.cc
[modify] https://crrev.com/e9c53b9c528ffc8ad953c01aeaedfb77c98df508/chrome/test/BUILD.gn

Comment 85 by treib@chromium.org, Nov 15 2017

Labels: -Type-Bug Type-Task

Comment 86 by treib@chromium.org, Nov 22 2017

Status: Fixed (was: Started)
Let's consider this one done. There are some small remaining parts which are tracked in  bug 476079 , and we could consider #ifdef'ing out more of the code on Android, for which I've just filed  bug 787830 .
Project Member

Comment 87 by bugdroid1@chromium.org, Nov 30 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/409320b6e384953333d460883fe7a04ace75f546

commit 409320b6e384953333d460883fe7a04ace75f546
Author: Marc Treib <treib@chromium.org>
Date: Thu Nov 30 14:30:42 2017

Cleanup: Remove InstantUI, i.e. chrome://instant

Most of its functionality had been removed already. The only thing
remaining was overriding a pref that isn't used at all.

Bug:  627747 ,  787830 
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: Icf09d46b98331e47a419f85ade034b889a60b66c
Reviewed-on: https://chromium-review.googlesource.com/793510
Reviewed-by: Dominic Battré <battre@chromium.org>
Reviewed-by: calamity <calamity@chromium.org>
Commit-Queue: Marc Treib <treib@chromium.org>
Cr-Commit-Position: refs/heads/master@{#520537}
[modify] https://crrev.com/409320b6e384953333d460883fe7a04ace75f546/chrome/browser/browser_resources.grd
[modify] https://crrev.com/409320b6e384953333d460883fe7a04ace75f546/chrome/browser/prefs/browser_prefs.cc
[delete] https://crrev.com/c721c7cddaa61e28a360f5942682d7417fc7c5c9/chrome/browser/resources/instant/instant.css
[delete] https://crrev.com/c721c7cddaa61e28a360f5942682d7417fc7c5c9/chrome/browser/resources/instant/instant.html
[delete] https://crrev.com/c721c7cddaa61e28a360f5942682d7417fc7c5c9/chrome/browser/resources/instant/instant.js
[modify] https://crrev.com/409320b6e384953333d460883fe7a04ace75f546/chrome/browser/ui/BUILD.gn
[modify] https://crrev.com/409320b6e384953333d460883fe7a04ace75f546/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
[delete] https://crrev.com/c721c7cddaa61e28a360f5942682d7417fc7c5c9/chrome/browser/ui/webui/instant_ui.cc
[delete] https://crrev.com/c721c7cddaa61e28a360f5942682d7417fc7c5c9/chrome/browser/ui/webui/instant_ui.h
[modify] https://crrev.com/409320b6e384953333d460883fe7a04ace75f546/chrome/common/pref_names.cc
[modify] https://crrev.com/409320b6e384953333d460883fe7a04ace75f546/chrome/common/pref_names.h
[modify] https://crrev.com/409320b6e384953333d460883fe7a04ace75f546/chrome/common/webui_url_constants.cc
[modify] https://crrev.com/409320b6e384953333d460883fe7a04ace75f546/chrome/common/webui_url_constants.h

Sign in to add a comment