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

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: For preview 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
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..5927021f510165dce4badb7d69a03a73a7969a6a 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.IsReadOnly());
FOR_EACH_OBSERVER(AppListItemModelObserver, observers_, ItemIconChanged());
}

Powered by Google App Engine
This is Rietveld 408576698