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

Unified Diff: ash/system/tray/system_tray.cc

Issue 16909006: Turn off the tip for the sytem tray menu and the app list (ChromeOS). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Created 7 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
« no previous file with comments | « no previous file | ash/wm/app_list_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/system_tray.cc
diff --git a/ash/system/tray/system_tray.cc b/ash/system/tray/system_tray.cc
index 677c710c38df64fdce32c1f770f4b9318d6de41c..eb183ec0c122191c2b2bea48b4b451bbc8aa0c06 100644
--- a/ash/system/tray/system_tray.cc
+++ b/ash/system/tray/system_tray.cc
@@ -89,6 +89,11 @@ class SystemBubbleWrapper {
bubble_->InitView(anchor, login_status, init_params);
bubble_wrapper_.reset(
new internal::TrayBubbleWrapper(tray, bubble_->bubble_view()));
+ if (ash::switches::UseAlternateShelfLayout()) {
+ // The system bubble should not have an arrow.
+ bubble_->bubble_view()->SetArrowPaintType(
+ views::BubbleBorder::PAINT_NONE);
+ }
simonhong_ 2013/06/15 15:21:07 This code is actually changing PAINT_NORMAL to PAI
}
// Convenience accessors:
@@ -510,7 +515,8 @@ void SystemTray::AnchorUpdated() {
}
if (system_bubble_) {
system_bubble_->bubble_view()->UpdateBubble();
- UpdateBubbleViewArrow(system_bubble_->bubble_view());
+ if (!ash::switches::UseAlternateShelfLayout())
+ UpdateBubbleViewArrow(system_bubble_->bubble_view());
}
}
« no previous file with comments | « no previous file | ash/wm/app_list_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698