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

Unified Diff: chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.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
Index: chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc
diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc
index 5673dcb512a61a64e11dfec0acbc13e660d014a6..d64ba1567eac42625f4b7d8c15b05d74b2cdaee1 100644
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc
@@ -1386,7 +1386,7 @@ void ChromeLauncherControllerImpl::CloseWindowedAppsFromRemovedExtension(
void ChromeLauncherControllerImpl::SetShelfItemDelegate(
ash::ShelfID id,
ash::mojom::ShelfItemDelegate* item_delegate) {
- DCHECK_GT(id, 0);
+ DCHECK_NE(id, ash::kInvalidShelfID);
DCHECK(item_delegate);
model_->SetShelfItemDelegate(
id, base::WrapUnique<ash::mojom::ShelfItemDelegate>(item_delegate));

Powered by Google App Engine
This is Rietveld 408576698