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

Unified Diff: chrome/browser/ui/webui/ntp/thumbnail_source.cc

Issue 8817011: Revert 113137 - ntp: remove default thumbnail for most visited (broken camera) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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/resources/ntp4/new_tab_theme.css ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/ntp/thumbnail_source.cc
===================================================================
--- chrome/browser/ui/webui/ntp/thumbnail_source.cc (revision 113138)
+++ chrome/browser/ui/webui/ntp/thumbnail_source.cc (working copy)
@@ -46,5 +46,11 @@
}
void ThumbnailSource::SendDefaultThumbnail(int request_id) {
+ // Use placeholder thumbnail.
+ if (!default_thumbnail_.get()) {
+ default_thumbnail_ =
+ ResourceBundle::GetSharedInstance().LoadDataResourceBytes(
+ IDR_DEFAULT_THUMBNAIL);
+ }
SendResponse(request_id, default_thumbnail_);
}
« no previous file with comments | « chrome/browser/resources/ntp4/new_tab_theme.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698