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

Unified Diff: chrome/browser/ui/toolbar/media_router_action.h

Issue 2176613003: [Media Router] Clean up issues related code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/toolbar/media_router_action.h
diff --git a/chrome/browser/ui/toolbar/media_router_action.h b/chrome/browser/ui/toolbar/media_router_action.h
index ace06a32f18e0cdfe7f86ea861e907c9cdadf917..ac7592c1429ec29de427980532f365f15333cc0d 100644
--- a/chrome/browser/ui/toolbar/media_router_action.h
+++ b/chrome/browser/ui/toolbar/media_router_action.h
@@ -98,9 +98,15 @@ class MediaRouterAction : public ToolbarActionViewController,
// routes since |this| is an IssueObserver and MediaRoutesObserver.
gfx::VectorIconId current_icon_;
- // The current issue shown in the Media Router WebUI. Can be null. It is set
- // in OnIssueUpdated(), which is called by the IssueManager.
- std::unique_ptr<media_router::Issue> issue_;
+ // Whether the Media Router UI is currently showing an issue. If |true|,
+ // |current_issue_severity_| indicates the severity of the issue.
+ // Set in OnIssueUpdated(), which is called by the IssueManager.
+ bool has_issue_;
mark a. foltz 2016/07/27 18:52:04 It seems more straightforward for MediaRouterActio
imcheng 2016/09/13 20:27:54 I think the issue (no pun intended) here is that M
+
+ // The severity of the current issue shown in the Media Router WebUI.
+ // The value is valid only if |has_issue_| is true.
+ // Set in OnIssueUpdated(), which is called by the IssueManager.
+ media_router::Issue::Severity current_issue_severity_;
// Whether a local displayable active route exists.
bool has_local_display_route_;

Powered by Google App Engine
This is Rietveld 408576698