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

Unified Diff: components/ntp_snippets/ntp_snippets_service.h

Issue 2083533002: [NTP Snippets] Shut down the service on database failure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@image_db_tests
Patch Set: comments Created 4 years, 6 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: components/ntp_snippets/ntp_snippets_service.h
diff --git a/components/ntp_snippets/ntp_snippets_service.h b/components/ntp_snippets/ntp_snippets_service.h
index 1b1295c916572535b28a392b16255318f95e910a..57542c118dacd18af251ddc534d2f28aab0503fd 100644
--- a/components/ntp_snippets/ntp_snippets_service.h
+++ b/components/ntp_snippets/ntp_snippets_service.h
@@ -206,8 +206,9 @@ class NTPSnippetsService : public KeyedService,
void OnImageDataFetched(const std::string& snippet_id,
const std::string& image_data) override;
- // Callback for the NTPSnippetsDatabase.
+ // Callbacks for the NTPSnippetsDatabase.
void OnDatabaseLoaded(NTPSnippet::PtrVector snippets);
+ void OnDatabaseError();
// Callback for the SuggestionsService.
void OnSuggestionsChanged(const suggestions::SuggestionsProfile& suggestions);

Powered by Google App Engine
This is Rietveld 408576698