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

Unified Diff: chrome/common/render_messages.h

Issue 174018: Disable mute/unmute when media does not have an audio track. (Closed)
Patch Set: Merged Created 11 years, 4 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 | « chrome/browser/tab_contents/render_view_context_menu.cc ('k') | webkit/glue/context_menu.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/render_messages.h
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h
index ee8c7516d7a922bde627b71e2fe3e8941921b032..af0e9014d562cdbb35ab6046740732a9901070ca 100644
--- a/chrome/common/render_messages.h
+++ b/chrome/common/render_messages.h
@@ -879,10 +879,12 @@ struct ParamTraits<ContextMenuMediaParams> {
typedef ContextMenuMediaParams param_type;
static void Write(Message* m, const param_type& p) {
WriteParam(m, p.player_state);
+ WriteParam(m, p.has_audio);
}
static bool Read(const Message* m, void** iter, param_type* p) {
return
- ReadParam(m, iter, &p->player_state);
+ ReadParam(m, iter, &p->player_state) &&
+ ReadParam(m, iter, &p->has_audio);
}
};
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu.cc ('k') | webkit/glue/context_menu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698