Chromium Code Reviews| 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 363919fbec35873db79e2b69c843a73f07445273..d5b262412746b548301a0d4d3f8c98a45e18ae47 100644 |
| --- a/chrome/browser/ui/webui/snippets_internals_message_handler.cc |
| +++ b/chrome/browser/ui/webui/snippets_internals_message_handler.cc |
| @@ -122,6 +122,8 @@ void SnippetsInternalsMessageHandler::HandleDownload( |
| const base::ListValue* args) { |
| DCHECK_EQ(1u, args->GetSize()); |
| + SendString("hosts-status", std::string()); |
| + |
| std::string hosts_string; |
| args->GetString(0, &hosts_string); |
| @@ -160,6 +162,9 @@ void SnippetsInternalsMessageHandler::SendSnippets() { |
| result.Set("list", std::move(snippets_list)); |
| web_ui()->CallJavascriptFunction("chrome.SnippetsInternals.receiveSnippets", |
| result); |
| + |
| + const std::string& status = ntp_snippets_service_->last_status(); |
| + if (!status.empty()) SendString("hosts-status", "Finished: " + status); |
|
Bernhard Bauer
2016/04/22 09:42:17
Put the body of the if-statement onto a new line.
jkrcal
2016/04/22 11:11:59
Done.
|
| } |
| void SnippetsInternalsMessageHandler::SendDiscardedSnippets() { |