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

Unified Diff: ash/common/shelf/shelf_window_watcher.cc

Issue 2750463009: mash: Fix ShelfItem mojo struct; add enums and traits. (Closed)
Patch Set: Address comment. Created 3 years, 9 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 | « ash/common/shelf/shelf_model_observer.h ('k') | ash/common/shelf/shelf_window_watcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/shelf_window_watcher.cc
diff --git a/ash/common/shelf/shelf_window_watcher.cc b/ash/common/shelf/shelf_window_watcher.cc
index adb20b81b635515c19b7420a76632f2a55cd2573..c8a8b482f0ce5abd0b8b8da1945a1656d71bd1d1 100644
--- a/ash/common/shelf/shelf_window_watcher.cc
+++ b/ash/common/shelf/shelf_window_watcher.cc
@@ -172,7 +172,7 @@ void ShelfWindowWatcher::AddShelfItem(aura::Window* window) {
void ShelfWindowWatcher::RemoveShelfItem(aura::Window* window) {
user_windows_with_items_.erase(window);
- int shelf_id = window->GetProperty(kShelfIDKey);
+ ShelfID shelf_id = window->GetProperty(kShelfIDKey);
DCHECK_NE(shelf_id, kInvalidShelfID);
int index = model_->ItemIndexByID(shelf_id);
DCHECK_GE(index, 0);
« no previous file with comments | « ash/common/shelf/shelf_model_observer.h ('k') | ash/common/shelf/shelf_window_watcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698