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

Unified Diff: ash/system/web_notification/ash_popup_alignment_delegate.cc

Issue 2823133002: Clean up some ash constants. (Closed)
Patch Set: ditto Created 3 years, 8 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/system/tray/tray_utils.cc ('k') | ash/wm/workspace/workspace_layout_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/web_notification/ash_popup_alignment_delegate.cc
diff --git a/ash/system/web_notification/ash_popup_alignment_delegate.cc b/ash/system/web_notification/ash_popup_alignment_delegate.cc
index 41fa4f7af0b660ed8288c25083e1b45ba477eb07..360062a087854595b8a2c9ed12dca3fad9da3e9b 100644
--- a/ash/system/web_notification/ash_popup_alignment_delegate.cc
+++ b/ash/system/web_notification/ash_popup_alignment_delegate.cc
@@ -62,8 +62,7 @@ void AshPopupAlignmentDelegate::SetTrayBubbleHeight(int height) {
// should be reduced by the height of shelf's shown height.
if (shelf_->GetVisibilityState() == SHELF_AUTO_HIDE &&
shelf_->GetAutoHideState() == SHELF_AUTO_HIDE_SHOWN) {
- tray_bubble_height_ -= GetShelfConstant(SHELF_SIZE) -
- GetShelfConstant(SHELF_INSETS_FOR_AUTO_HIDE);
+ tray_bubble_height_ -= kShelfSize;
}
if (tray_bubble_height_ > 0)
« no previous file with comments | « ash/system/tray/tray_utils.cc ('k') | ash/wm/workspace/workspace_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698