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

Unified Diff: media/midi/midi_manager_alsa.h

Issue 1458553006: ScopedPtrMap -> std::map from apps, ash, media, ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix ash_unittests compile error Created 5 years, 1 month 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 | « ash/system/chromeos/power/tray_power_unittest.cc ('k') | media/midi/midi_manager_alsa.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/midi/midi_manager_alsa.h
diff --git a/media/midi/midi_manager_alsa.h b/media/midi/midi_manager_alsa.h
index e577a65788f6304369299c0cc61161b30a9dbdaa..2dd95e63299a1ee1a0c02cf6aae4a4819c1577ba 100644
--- a/media/midi/midi_manager_alsa.h
+++ b/media/midi/midi_manager_alsa.h
@@ -6,10 +6,10 @@
#define MEDIA_MIDI_MIDI_MANAGER_ALSA_H_
#include <alsa/asoundlib.h>
+#include <map>
#include <vector>
#include "base/basictypes.h"
-#include "base/containers/scoped_ptr_map.h"
#include "base/gtest_prod_util.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
@@ -42,7 +42,7 @@ class MIDI_EXPORT MidiManagerAlsa final : public MidiManager {
FRIEND_TEST_ALL_PREFIXES(MidiManagerAlsaTest, ToMidiPortState);
class AlsaCard;
- typedef base::ScopedPtrMap<int, scoped_ptr<AlsaCard>> AlsaCardMap;
+ using AlsaCardMap = std::map<int, scoped_ptr<AlsaCard>>;
class MidiPort {
public:
@@ -269,7 +269,7 @@ class MIDI_EXPORT MidiManagerAlsa final : public MidiManager {
class Client {
public:
- typedef base::ScopedPtrMap<int, scoped_ptr<Port>> PortMap;
+ using PortMap = std::map<int, scoped_ptr<Port>>;
Client(const std::string& name, snd_seq_client_type_t type);
~Client();
@@ -289,9 +289,7 @@ class MIDI_EXPORT MidiManagerAlsa final : public MidiManager {
DISALLOW_COPY_AND_ASSIGN(Client);
};
- typedef base::ScopedPtrMap<int, scoped_ptr<Client>> ClientMap;
-
- ClientMap clients_;
+ std::map<int, scoped_ptr<Client>> clients_;
// This is the current number of clients we know about that have
// cards. When this number matches alsa_card_midi_count_, we know
« no previous file with comments | « ash/system/chromeos/power/tray_power_unittest.cc ('k') | media/midi/midi_manager_alsa.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698