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

Unified Diff: ui/app_list/app_list_item_model.cc

Issue 10820049: Load 2x resources on demand (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updated comment Created 8 years, 4 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
« no previous file with comments | « chrome/browser/web_applications/web_app_mac.mm ('k') | ui/app_list/app_list_item_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/app_list_item_model.cc
diff --git a/ui/app_list/app_list_item_model.cc b/ui/app_list/app_list_item_model.cc
index 4fb077d0ae0495f67502ae45270629fab27197ee..1b2ef7df30476b7ebd5bfb75233be088da10e544 100644
--- a/ui/app_list/app_list_item_model.cc
+++ b/ui/app_list/app_list_item_model.cc
@@ -4,6 +4,7 @@
#include "ui/app_list/app_list_item_model.h"
+#include "base/logging.h"
#include "ui/app_list/app_list_item_model_observer.h"
namespace app_list {
@@ -16,6 +17,7 @@ AppListItemModel::~AppListItemModel() {
void AppListItemModel::SetIcon(const gfx::ImageSkia& icon) {
icon_ = icon;
+ DCHECK(icon.IsThreadSafe());
FOR_EACH_OBSERVER(AppListItemModelObserver, observers_, ItemIconChanged());
}
« no previous file with comments | « chrome/browser/web_applications/web_app_mac.mm ('k') | ui/app_list/app_list_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698