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

Unified Diff: ash/common/system/chromeos/audio/audio_detailed_view.cc

Issue 2803893002: Reuse the code within UpdateCheckMark() (Closed)
Patch Set: Update comments. 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 | « no previous file | ash/common/system/chromeos/palette/common_palette_tool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/chromeos/audio/audio_detailed_view.cc
diff --git a/ash/common/system/chromeos/audio/audio_detailed_view.cc b/ash/common/system/chromeos/audio/audio_detailed_view.cc
index 4772e8a34931edbe3e4a691fa3969e2544c4934e..c17da9c8648901e97e8aa10a4620d3c7c108e999 100644
--- a/ash/common/system/chromeos/audio/audio_detailed_view.cc
+++ b/ash/common/system/chromeos/audio/audio_detailed_view.cc
@@ -110,17 +110,7 @@ HoverHighlightView* AudioDetailedView::AddScrollListItem(
HoverHighlightView* container = new HoverHighlightView(this);
container->AddLabelRow(text);
- if (checked) {
- gfx::ImageSkia check_mark =
- gfx::CreateVectorIcon(kCheckCircleIcon, gfx::kGoogleGreen700);
- container->AddRightIcon(check_mark, check_mark.width());
- container->SetRightViewVisible(true);
- container->SetAccessiblityState(
- HoverHighlightView::AccessibilityState::CHECKED_CHECKBOX);
- } else {
- container->SetAccessiblityState(
- HoverHighlightView::AccessibilityState::UNCHECKED_CHECKBOX);
- }
+ TrayPopupUtils::InitializeAsCheckableRow(container, checked);
scroll_content()->AddChildView(container);
return container;
« no previous file with comments | « no previous file | ash/common/system/chromeos/palette/common_palette_tool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698