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

Unified Diff: chrome/browser/search/instant_service.cc

Issue 1396143002: Emit correct NewTabPage.SuggestionsType metrics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « chrome/browser/search/instant_service.h ('k') | chrome/browser/search/instant_service_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search/instant_service.cc
diff --git a/chrome/browser/search/instant_service.cc b/chrome/browser/search/instant_service.cc
index f8ea9c111d7cb800cca5603884aa0b0eb66de352..a75cc222b54f11c32b8c22a329fbe8b4f29e2941 100644
--- a/chrome/browser/search/instant_service.cc
+++ b/chrome/browser/search/instant_service.cc
@@ -331,6 +331,7 @@ void InstantService::OnSuggestionsAvailable(
if (suggestion.has_click_url()) {
item.click_url = GURL(suggestion.click_url());
}
+ item.is_server_side_suggestion = true;
new_suggestions_items.push_back(item);
}
suggestions_items_ = new_suggestions_items;
@@ -346,6 +347,7 @@ void InstantService::OnMostVisitedItemsReceived(
InstantMostVisitedItem item;
item.url = url.url;
item.title = url.title;
+ item.is_server_side_suggestion = false;
new_most_visited_items.push_back(item);
}
« no previous file with comments | « chrome/browser/search/instant_service.h ('k') | chrome/browser/search/instant_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698