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

Unified Diff: chrome/browser/ui/search/search_tab_helper.cc

Issue 178253008: Redoing Issue 36073011: Allowing file:/// in Instant Extended's Most Visited links. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unused consts. Created 6 years, 9 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/search/search_tab_helper.cc
diff --git a/chrome/browser/ui/search/search_tab_helper.cc b/chrome/browser/ui/search/search_tab_helper.cc
index ebfcf5205438decccbf657cdd878c43a97734a54..44e802c2a03d806cd7bf4a4ce8c8cd0843f234a9 100644
--- a/chrome/browser/ui/search/search_tab_helper.cc
+++ b/chrome/browser/ui/search/search_tab_helper.cc
@@ -538,10 +538,16 @@ void SearchTabHelper::OnLogEvent(NTPLoggingEventType event) {
web_contents())->LogEvent(event);
}
-void SearchTabHelper::OnLogImpression(int position,
- const base::string16& provider) {
+void SearchTabHelper::OnLogMostVisitedImpression(
+ int position, const base::string16& provider) {
NTPUserDataLogger::GetOrCreateFromWebContents(
- web_contents())->LogImpression(position, provider);
+ web_contents())->LogMostVisitedImpression(position, provider);
+}
+
+void SearchTabHelper::OnLogMostVisitedNavigation(
+ int position, const base::string16& provider) {
+ NTPUserDataLogger::GetOrCreateFromWebContents(
+ web_contents())->LogMostVisitedNavigation(position, provider);
}
void SearchTabHelper::PasteIntoOmnibox(const base::string16& text) {

Powered by Google App Engine
This is Rietveld 408576698