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

Issue 11262015: Remove unused / unnecessary stuff from Instant. (Closed)

Created:
8 years, 2 months ago by sreeram
Modified:
8 years, 1 month ago
Reviewers:
sky
CC:
chromium-reviews, tfarina, samarth, sreeram, gideonwald, dominich, Aaron Boodman, David Black, Jered, chromium-apps-reviews_chromium.org, darin-cc_chromium.org, James Su, Shishir, dhollowa
Visibility:
Public.

Description

Remove unused / unnecessary stuff from Instant. + Remove the SILENT, HIDDEN and SUGGEST modes. + Remove the DELAYED completion behaviour and related animation code. + Remove the delegate interface between InstantLoader and InstantController. These two are part of the same package, and it's unlikely that InstantLoader will ever be used by anything else. + Remove the delegate interface between InstantController and BrowserInstantController. This interface was originally established to ensure that Instant wouldn't reach into arbitrary parts of the Browser (at that time, there was no BrowserInstantController). Now, BrowserInstantController serves the same purpose as the interface, so there's no need for yet another layer in between. + Change DISALLOW_IMPLICIT_CONSTRUCTORS to DISALLOW_COPY_AND_ASSIGN (with apologies to @dhollowa) in classes which already have another constructor. IMPLICIT adds no value in these cases, and COPY_AND_ASSIGN is a more commonly recognized idiom. BUG=none R=sky@chromium.org TEST=none; no change in functionality. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=164005

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove SuggestedTextView entirely #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -601 lines) Patch
M chrome/browser/autocomplete/search_provider.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/search_provider_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/instant/instant_browsertest.cc View 2 chunks +1 line, -46 lines 0 comments Download
M chrome/browser/instant/instant_controller.h View 10 chunks +45 lines, -45 lines 0 comments Download
M chrome/browser/instant/instant_controller.cc View 17 chunks +26 lines, -39 lines 0 comments Download
D chrome/browser/instant/instant_controller_delegate.h View 1 chunk +0 lines, -46 lines 0 comments Download
M chrome/browser/instant/instant_loader.h View 6 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/instant/instant_loader.cc View 11 chunks +12 lines, -14 lines 0 comments Download
D chrome/browser/instant/instant_loader_delegate.h View 1 chunk +0 lines, -52 lines 0 comments Download
M chrome/browser/instant/instant_model.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/instant/instant_preview_controller.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/instant/instant_unload_handler.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/instant/instant_unload_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser_instant_controller.h View 4 chunks +20 lines, -12 lines 0 comments Download
M chrome/browser/ui/browser_instant_controller.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm View 3 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.h View 6 chunks +3 lines, -22 lines 0 comments Download
M chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc View 7 chunks +4 lines, -79 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_model.cc View 3 chunks +5 lines, -12 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_view.h View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.h View 1 4 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 3 chunks +7 lines, -9 lines 0 comments Download
D chrome/browser/ui/views/location_bar/suggested_text_view.h View 1 1 chunk +0 lines, -59 lines 0 comments Download
D chrome/browser/ui/views/location_bar/suggested_text_view.cc View 1 1 chunk +0 lines, -106 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_win.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_win.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/search/search_view_controller_browsertest.cc View 3 chunks +0 lines, -4 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/common/instant_types.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/renderer/searchbox/searchbox.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/searchbox/searchbox_extension.cc View 2 chunks +1 line, -3 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
sreeram
Please review.
8 years, 2 months ago (2012-10-24 19:26:59 UTC) #1
sky
http://codereview.chromium.org/11262015/diff/1/chrome/browser/ui/views/location_bar/suggested_text_view.h File chrome/browser/ui/views/location_bar/suggested_text_view.h (right): http://codereview.chromium.org/11262015/diff/1/chrome/browser/ui/views/location_bar/suggested_text_view.h#newcode14 chrome/browser/ui/views/location_bar/suggested_text_view.h:14: explicit SuggestedTextView(bool instant_extended_api_enabled); Can we get rid of this ...
8 years, 2 months ago (2012-10-24 21:40:40 UTC) #2
sreeram
http://codereview.chromium.org/11262015/diff/1/chrome/browser/ui/views/location_bar/suggested_text_view.h File chrome/browser/ui/views/location_bar/suggested_text_view.h (right): http://codereview.chromium.org/11262015/diff/1/chrome/browser/ui/views/location_bar/suggested_text_view.h#newcode14 chrome/browser/ui/views/location_bar/suggested_text_view.h:14: explicit SuggestedTextView(bool instant_extended_api_enabled); On 2012/10/24 21:40:40, sky wrote: > ...
8 years, 2 months ago (2012-10-24 22:16:14 UTC) #3
sky
LGTM
8 years, 2 months ago (2012-10-24 23:49:19 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sreeram@chromium.org/11262015/1036
8 years, 2 months ago (2012-10-24 23:55:47 UTC) #5
commit-bot: I haz the power
8 years, 1 month ago (2012-10-25 03:21:56 UTC) #6
Change committed as 164005

Powered by Google App Engine
This is Rietveld 408576698