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

Issue 10836031: Remove Instant v1 API. (Closed)

Created:
8 years, 4 months ago by sreeram
Modified:
8 years, 4 months ago
Reviewers:
sky, Jered, awong
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, tfarina, Aaron Boodman, arv (Not doing code reviews), darin-cc_chromium.org, brettw-cc_chromium.org, James Su, Jered, dominich, Shishir
Visibility:
Public.

Description

Remove Instant v1 API. In the process, refactors the Instant code so that all logic is centralized in the InstantController. InstantLoader now merely forwards messages between InstantController and the renderer. BUG=none R=sky@chromium.org TEST=Instant works as before when enabled from chrome://settings/. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=150795

Patch Set 1 #

Total comments: 10

Patch Set 2 : Tests done, rebaseline #

Patch Set 3 : More build and test fixes, rebaseline #

Patch Set 4 : Build fix #

Total comments: 22

Patch Set 5 : ASSERT_NO_FATAL_FAILURE and other review comments #

Patch Set 6 : Rebaseline only #

Patch Set 7 : Update history, title, favicon #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1800 lines, -3002 lines) Patch
M chrome/browser/instant/instant_browsertest.cc View 1 2 3 4 5 6 2 chunks +637 lines, -655 lines 0 comments Download
M chrome/browser/instant/instant_commit_type.h View 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/instant/instant_controller.h View 1 2 3 chunks +131 lines, -166 lines 0 comments Download
M chrome/browser/instant/instant_controller.cc View 1 2 3 4 5 6 4 chunks +381 lines, -303 lines 0 comments Download
M chrome/browser/instant/instant_controller_delegate.h View 2 chunks +11 lines, -10 lines 0 comments Download
M chrome/browser/instant/instant_loader.h View 1 2 3 4 5 6 1 chunk +73 lines, -205 lines 0 comments Download
M chrome/browser/instant/instant_loader.cc View 1 2 3 4 5 6 7 chunks +189 lines, -1007 lines 0 comments Download
M chrome/browser/instant/instant_loader_delegate.h View 1 chunk +18 lines, -28 lines 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 2 3 2 chunks +1 line, -6 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc View 1 2 2 chunks +0 lines, -12 lines 0 comments Download
M chrome/browser/resources/options2/browser_options.js View 1 2 3 4 5 1 chunk +4 lines, -8 lines 0 comments Download
M chrome/browser/resources/options2/instant_confirm_overlay.js View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/browser_instant_controller.h View 1 4 chunks +21 lines, -6 lines 0 comments Download
M chrome/browser/ui/browser_instant_controller.cc View 1 2 7 chunks +52 lines, -56 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/location_bar_view_gtk.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_model.h View 7 chunks +13 lines, -19 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_model.cc View 1 2 3 4 5 9 chunks +29 lines, -15 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 3 4 5 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/ui/views/location_bar/suggested_text_view.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/instant_ui.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/instant_ui.cc View 3 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/options2/browser_options_handler.h View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/options2/browser_options_handler.cc View 1 3 chunks +0 lines, -17 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/common/chrome_notification_types.h View 1 2 3 4 5 1 chunk +8 lines, -5 lines 0 comments Download
M chrome/common/instant_types.h View 1 chunk +8 lines, -6 lines 0 comments Download
M chrome/common/render_messages.h View 2 chunks +15 lines, -16 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 2 chunks +0 lines, -5 lines 0 comments Download
D chrome/renderer/search_extension.h View 1 chunk +0 lines, -23 lines 0 comments Download
D chrome/renderer/search_extension.cc View 1 chunk +0 lines, -94 lines 0 comments Download
M chrome/renderer/searchbox.h View 3 chunks +20 lines, -15 lines 0 comments Download
M chrome/renderer/searchbox.cc View 6 chunks +28 lines, -32 lines 0 comments Download
M chrome/renderer/searchbox_extension.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/searchbox_extension.cc View 10 chunks +62 lines, -149 lines 0 comments Download
M chrome/test/data/instant.html View 1 1 chunk +36 lines, -41 lines 0 comments Download
M chrome/test/functional/PYAUTO_TESTS View 1 2 3 4 5 5 chunks +0 lines, -14 lines 0 comments Download
M chrome/test/functional/instant.py View 1 2 3 4 5 7 chunks +47 lines, -54 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
sreeram
Please review. Ignore instant_browsertest.cc for now. I'm still working on it. I'll update this CL ...
8 years, 4 months ago (2012-07-31 18:33:21 UTC) #1
Jered
Just a few minor questions. http://codereview.chromium.org/10836031/diff/1/chrome/browser/instant/instant_controller.cc File chrome/browser/instant/instant_controller.cc (right): http://codereview.chromium.org/10836031/diff/1/chrome/browser/instant/instant_controller.cc#newcode246 chrome/browser/instant/instant_controller.cc:246: history->AddPage(url_for_history_, NULL, 0, GURL(), ...
8 years, 4 months ago (2012-07-31 22:36:01 UTC) #2
sreeram
http://codereview.chromium.org/10836031/diff/1/chrome/browser/instant/instant_controller.cc File chrome/browser/instant/instant_controller.cc (right): http://codereview.chromium.org/10836031/diff/1/chrome/browser/instant/instant_controller.cc#newcode246 chrome/browser/instant/instant_controller.cc:246: history->AddPage(url_for_history_, NULL, 0, GURL(), last_transition_type_, On 2012/07/31 22:36:02, Jered ...
8 years, 4 months ago (2012-07-31 23:13:19 UTC) #3
Jered
http://codereview.chromium.org/10836031/diff/1/chrome/browser/instant/instant_controller.cc File chrome/browser/instant/instant_controller.cc (right): http://codereview.chromium.org/10836031/diff/1/chrome/browser/instant/instant_controller.cc#newcode246 chrome/browser/instant/instant_controller.cc:246: history->AddPage(url_for_history_, NULL, 0, GURL(), last_transition_type_, On 2012/07/31 23:13:19, sreeram ...
8 years, 4 months ago (2012-08-01 21:56:45 UTC) #4
sreeram
http://codereview.chromium.org/10836031/diff/1/chrome/browser/instant/instant_controller.cc File chrome/browser/instant/instant_controller.cc (right): http://codereview.chromium.org/10836031/diff/1/chrome/browser/instant/instant_controller.cc#newcode246 chrome/browser/instant/instant_controller.cc:246: history->AddPage(url_for_history_, NULL, 0, GURL(), last_transition_type_, On 2012/08/01 21:56:45, Jered ...
8 years, 4 months ago (2012-08-01 22:56:49 UTC) #5
sreeram
Tests are now done. Please review everything.
8 years, 4 months ago (2012-08-02 17:27:43 UTC) #6
sky
I know you're anxious to get this in, but given the branch is nearly at ...
8 years, 4 months ago (2012-08-03 16:01:09 UTC) #7
sreeram
On Fri, Aug 3, 2012 at 9:01 AM, Scott Violet <sky@chromium.org> wrote: > I know ...
8 years, 4 months ago (2012-08-03 16:19:08 UTC) #8
sky
http://codereview.chromium.org/10836031/diff/10005/chrome/browser/instant/instant_browsertest.cc File chrome/browser/instant/instant_browsertest.cc (right): http://codereview.chromium.org/10836031/diff/10005/chrome/browser/instant/instant_browsertest.cc#newcode45 chrome/browser/instant/instant_browsertest.cc:45: void SetupInstant(const std::string& page) { Since this has an ...
8 years, 4 months ago (2012-08-07 15:57:20 UTC) #9
sreeram
http://codereview.chromium.org/10836031/diff/10005/chrome/browser/instant/instant_browsertest.cc File chrome/browser/instant/instant_browsertest.cc (right): http://codereview.chromium.org/10836031/diff/10005/chrome/browser/instant/instant_browsertest.cc#newcode45 chrome/browser/instant/instant_browsertest.cc:45: void SetupInstant(const std::string& page) { On 2012/08/07 15:57:21, sky ...
8 years, 4 months ago (2012-08-07 16:35:03 UTC) #10
sky
Only open thing is favicon/title. I'm leaving the final decision on that to you. http://codereview.chromium.org/10836031/diff/10005/chrome/browser/instant/instant_browsertest.cc ...
8 years, 4 months ago (2012-08-07 20:19:12 UTC) #11
sreeram
http://codereview.chromium.org/10836031/diff/10005/chrome/browser/instant/instant_browsertest.cc File chrome/browser/instant/instant_browsertest.cc (right): http://codereview.chromium.org/10836031/diff/10005/chrome/browser/instant/instant_browsertest.cc#newcode725 chrome/browser/instant/instant_browsertest.cc:725: // Ignored arguments have their parameter names omitted. On ...
8 years, 4 months ago (2012-08-08 20:55:35 UTC) #12
sky
On Wed, Aug 8, 2012 at 1:55 PM, <sreeram@chromium.org> wrote: > > http://codereview.chromium.org/10836031/diff/10005/chrome/browser/instant/instant_browsertest.cc > File ...
8 years, 4 months ago (2012-08-08 21:33:14 UTC) #13
sreeram
On 2012/08/08 21:33:14, sky wrote: > Can you make sure its easy for me to ...
8 years, 4 months ago (2012-08-08 22:14:31 UTC) #14
sky
LGTM
8 years, 4 months ago (2012-08-08 23:14:19 UTC) #15
sreeram
8 years, 4 months ago (2012-08-08 23:23:12 UTC) #16
Uploaded patchset 7 to deal with the history title/favicon stuff. PTAL.

However, note that I'm not actually updating the history title/favicon for the
fake search entry that we add to history. There's no point in doing so: the
autocomplete sytem doesn't use it, and the fake entry will be removed once bug
139176 is fixed.

Instead, the patchset fixes the history so that the "www.google.com/webhp#q=foo"
entry is added if that navigation happens before commit. I should probably add a
browsertest for this. Since the instant.html used by the tests doesn't do any
navigations, I'd need to update it. I'll add a TODO for myself.

Powered by Google App Engine
This is Rietveld 408576698