Index: chrome/browser/ui/webui/snippets_internals_message_handler.cc |
diff --git a/chrome/browser/ui/webui/snippets_internals_message_handler.cc b/chrome/browser/ui/webui/snippets_internals_message_handler.cc |
index 761bad9674211e3f3b2e68e8a39aa98de73725fa..55030f85ebc0669c264085a062075ac85871653c 100644 |
--- a/chrome/browser/ui/webui/snippets_internals_message_handler.cc |
+++ b/chrome/browser/ui/webui/snippets_internals_message_handler.cc |
@@ -41,7 +41,7 @@ std::unique_ptr<base::DictionaryValue> PrepareSuggestion( |
const ContentSuggestion& suggestion, |
int index) { |
auto entry = base::MakeUnique<base::DictionaryValue>(); |
- entry->SetString("suggestionId", suggestion.id()); |
+ entry->SetString("idWithinCategory", suggestion.id().id_within_category()); |
entry->SetString("url", suggestion.url().spec()); |
entry->SetString("ampUrl", suggestion.amp_url().spec()); |
entry->SetString("title", suggestion.title()); |
@@ -144,8 +144,7 @@ void SnippetsInternalsMessageHandler::OnCategoryStatusChanged( |
} |
void SnippetsInternalsMessageHandler::OnSuggestionInvalidated( |
- ntp_snippets::Category category, |
- const std::string& suggestion_id) { |
+ const ntp_snippets::ContentSuggestion::ID& suggestion_id) { |
if (!dom_loaded_) |
return; |
SendContentSuggestions(); |