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

Unified Diff: chromecast/base/device_capabilities_impl.h

Issue 1869503003: Convert //net and //chromecast to std::unordered_* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix cast Created 4 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
Index: chromecast/base/device_capabilities_impl.h
diff --git a/chromecast/base/device_capabilities_impl.h b/chromecast/base/device_capabilities_impl.h
index 70917a5acb317b0cf611db18b7232cb1b4a2e01d..d463ed0dab6c362f078a008f7f1a63d135419567 100644
--- a/chromecast/base/device_capabilities_impl.h
+++ b/chromecast/base/device_capabilities_impl.h
@@ -5,9 +5,10 @@
#ifndef CHROMECAST_BASE_DEVICE_CAPABILITIES_IMPL_H_
#define CHROMECAST_BASE_DEVICE_CAPABILITIES_IMPL_H_
+#include <memory>
#include <string>
+#include <unordered_map>
-#include "base/containers/scoped_ptr_hash_map.h"
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "base/observer_list_threadsafe.h"
@@ -70,8 +71,8 @@ class DeviceCapabilitiesImpl : public DeviceCapabilities {
// Map from capability key to corresponding ValidatorInfo. Gets updated
// in Register()/Unregister().
- typedef base::ScopedPtrHashMap<std::string, std::unique_ptr<ValidatorInfo>>
- ValidatorMap;
+ using ValidatorMap =
+ std::unordered_map<std::string, std::unique_ptr<ValidatorInfo>>;
// Internal constructor used by static DeviceCapabilities::Create*() methods.
DeviceCapabilitiesImpl();
« no previous file with comments | « no previous file | chromecast/base/device_capabilities_impl.cc » ('j') | chromecast/base/device_capabilities_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698