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

Unified Diff: ui/app_list/views/tile_item_view.cc

Issue 326023002: App list: TileItemView::SetAppListItem exits early if item already set. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« ui/app_list/views/tile_item_view.h ('K') | « ui/app_list/views/tile_item_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/tile_item_view.cc
diff --git a/ui/app_list/views/tile_item_view.cc b/ui/app_list/views/tile_item_view.cc
index 583098e25cad9b879cba0a5c81e3e3b64971df96..c6d5f1cc717932312aad1ffa5867b9407b71a7dc 100644
--- a/ui/app_list/views/tile_item_view.cc
+++ b/ui/app_list/views/tile_item_view.cc
@@ -102,6 +102,9 @@ TileItemView::~TileItemView() {
}
void TileItemView::SetAppListItem(AppListItem* item) {
+ if (item == item_)
tapted 2014/06/10 04:21:54 Does the pointer change when just the title/icon c
Matt Giuca 2014/06/10 05:28:54 Done (TODO). Calamity says not worth addressing n
+ return;
+
item_ = item;
if (!item) {
SetVisible(false);
@@ -127,4 +130,4 @@ void TileItemView::ButtonPressed(views::Button* sender,
item_->Activate(event.flags());
}
-} // namespace app_list
+} // namespace app_list
« ui/app_list/views/tile_item_view.h ('K') | « ui/app_list/views/tile_item_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698