Commit 55c663b1 authored by Marc Treib's avatar Marc Treib Committed by Commit Bot

InstantController cleanup: don't send Instant info in DidFinishNavigation

This info is already sent in NavigationEntryCommitted, which covers all
relevant cases. No need to re-send almost immediately.

Bug: none
Change-Id: I125b8dd53a2c487c129cee98eb2d09527394263a
Reviewed-on: https://chromium-review.googlesource.com/827071Reviewed-by: default avatarChris Pickel <sfiera@chromium.org>
Commit-Queue: Marc Treib <treib@chromium.org>
Cr-Commit-Position: refs/heads/master@{#524071}
parent f9145d97
......@@ -34,17 +34,6 @@ class InstantController::TabObserver : public content::WebContentsObserver {
}
}
void DidFinishNavigation(
content::NavigationHandle* navigation_handle) override {
// TODO(treib): Verify if this is necessary - NavigationEntryCommitted
// should already cover all cases.
if (navigation_handle->HasCommitted() &&
navigation_handle->IsInMainFrame() &&
search::IsInstantNTP(web_contents())) {
callback_.Run();
}
}
base::Closure callback_;
DISALLOW_COPY_AND_ASSIGN(TabObserver);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment