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

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

Issue 808253006: Remove the GoogleURLTracker infobar functionality entirely. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resync Created 5 years, 11 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/omnibox_edit_model.cc
diff --git a/chrome/browser/ui/omnibox/omnibox_edit_model.cc b/chrome/browser/ui/omnibox/omnibox_edit_model.cc
index f4133a7145262b1c46927ae258db3e2da18da152..237acc183dcaefcddcc92e0b2908f43f956e5098 100644
--- a/chrome/browser/ui/omnibox/omnibox_edit_model.cc
+++ b/chrome/browser/ui/omnibox/omnibox_edit_model.cc
@@ -26,7 +26,6 @@
#include "chrome/browser/command_updater.h"
#include "chrome/browser/extensions/api/omnibox/omnibox_api.h"
#include "chrome/browser/favicon/favicon_tab_helper.h"
-#include "chrome/browser/google/google_url_tracker_factory.h"
#include "chrome/browser/net/predictor.h"
#include "chrome/browser/omnibox/omnibox_log.h"
#include "chrome/browser/predictors/autocomplete_action_predictor.h"
@@ -53,7 +52,6 @@
#include "chrome/common/pref_names.h"
#include "chrome/common/url_constants.h"
#include "components/bookmarks/browser/bookmark_model.h"
-#include "components/google/core/browser/google_url_tracker.h"
#include "components/metrics/proto/omnibox_event.pb.h"
#include "components/omnibox/autocomplete_provider.h"
#include "components/omnibox/keyword_provider.h"
@@ -688,17 +686,6 @@ void OmniboxEditModel::AcceptInput(WindowOpenDisposition disposition,
match.transition = ui::PAGE_TRANSITION_LINK;
}
- TemplateURLService* service =
- TemplateURLServiceFactory::GetForProfile(profile_);
- const TemplateURL* template_url = match.GetTemplateURL(service, false);
- if (template_url && template_url->url_ref().HasGoogleBaseURLs(
- UIThreadSearchTermsData(profile_))) {
- GoogleURLTracker* tracker =
- GoogleURLTrackerFactory::GetForProfile(profile_);
- if (tracker)
- tracker->SearchCommitted();
- }
-
DCHECK(popup_model());
view_->OpenMatch(match, disposition, alternate_nav_url, base::string16(),
popup_model()->selected_line());

Powered by Google App Engine
This is Rietveld 408576698