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

Unified Diff: chrome/browser/ui/omnibox/alternate_nav_url_fetcher.cc

Issue 18223002: InstantExtended: Remove overlay control code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Call renamed method. Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/omnibox/alternate_nav_url_fetcher.cc
diff --git a/chrome/browser/ui/omnibox/alternate_nav_url_fetcher.cc b/chrome/browser/ui/omnibox/alternate_nav_url_fetcher.cc
index c6e6d633050953f55765d331c086712808de25f0..2b302c068bcd09f34b9076da467faffe2502c1f6 100644
--- a/chrome/browser/ui/omnibox/alternate_nav_url_fetcher.cc
+++ b/chrome/browser/ui/omnibox/alternate_nav_url_fetcher.cc
@@ -29,8 +29,6 @@ AlternateNavURLFetcher::AlternateNavURLFetcher(
navigated_to_entry_(false) {
registrar_.Add(this, content::NOTIFICATION_NAV_ENTRY_PENDING,
content::NotificationService::AllSources());
- registrar_.Add(this, chrome::NOTIFICATION_INSTANT_COMMITTED,
- content::NotificationService::AllSources());
}
AlternateNavURLFetcher::~AlternateNavURLFetcher() {
@@ -60,19 +58,6 @@ void AlternateNavURLFetcher::Observe(
break;
}
- case chrome::NOTIFICATION_INSTANT_COMMITTED: {
- // See above.
- NavigationController* controller =
- &content::Source<content::WebContents>(source)->GetController();
- if (controller_ == controller) {
- delete this;
- } else if (!controller_) {
- navigated_to_entry_ = true;
- StartFetch(controller);
- }
- break;
- }
-
case content::NOTIFICATION_NAV_ENTRY_COMMITTED:
// The page was navigated, we can show the infobar now if necessary.
registrar_.Remove(this, content::NOTIFICATION_NAV_ENTRY_COMMITTED,
« no previous file with comments | « chrome/browser/ui/cocoa/tab_contents/render_view_context_menu_mac.mm ('k') | chrome/browser/ui/omnibox/omnibox_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698