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

Unified Diff: chromecast/base/device_capabilities_impl.h

Issue 1884453002: Revert of Convert //net and //chromecast to std::unordered_* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | chromecast/base/device_capabilities_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/base/device_capabilities_impl.h
diff --git a/chromecast/base/device_capabilities_impl.h b/chromecast/base/device_capabilities_impl.h
index d463ed0dab6c362f078a008f7f1a63d135419567..70917a5acb317b0cf611db18b7232cb1b4a2e01d 100644
--- a/chromecast/base/device_capabilities_impl.h
+++ b/chromecast/base/device_capabilities_impl.h
@@ -5,10 +5,9 @@
#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"
@@ -71,8 +70,8 @@
// Map from capability key to corresponding ValidatorInfo. Gets updated
// in Register()/Unregister().
- using ValidatorMap =
- std::unordered_map<std::string, std::unique_ptr<ValidatorInfo>>;
+ typedef base::ScopedPtrHashMap<std::string, std::unique_ptr<ValidatorInfo>>
+ ValidatorMap;
// Internal constructor used by static DeviceCapabilities::Create*() methods.
DeviceCapabilitiesImpl();
« no previous file with comments | « no previous file | chromecast/base/device_capabilities_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698