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

Side by Side Diff: components/copresence/handlers/audio/audio_directive_list.cc

Issue 1832463002: Add <algorithm> header to audio_directive_list.cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/copresence/handlers/audio/audio_directive_list.h" 5 #include "components/copresence/handlers/audio/audio_directive_list.h"
6 6
7 #include <algorithm>
8
7 namespace copresence { 9 namespace copresence {
8 10
9 // Public functions. 11 // Public functions.
10 12
11 AudioDirective::AudioDirective() {} 13 AudioDirective::AudioDirective() {}
12 14
13 AudioDirective::AudioDirective(const std::string& op_id, 15 AudioDirective::AudioDirective(const std::string& op_id,
14 base::TimeTicks end_time, 16 base::TimeTicks end_time,
15 const Directive& server_directive) 17 const Directive& server_directive)
16 : op_id(op_id), 18 : op_id(op_id),
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 for (auto it = active_directives_.begin(); 82 for (auto it = active_directives_.begin();
81 it != active_directives_.end(); 83 it != active_directives_.end();
82 ++it) { 84 ++it) {
83 if (it->op_id == op_id) 85 if (it->op_id == op_id)
84 return it; 86 return it;
85 } 87 }
86 return active_directives_.end(); 88 return active_directives_.end();
87 } 89 }
88 90
89 } // namespace copresence 91 } // namespace copresence
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698