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

Unified Diff: Source/core/timing/PerformanceUserTiming.cpp

Issue 663693005: Use C++11 features in core/timing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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: Source/core/timing/PerformanceUserTiming.cpp
diff --git a/Source/core/timing/PerformanceUserTiming.cpp b/Source/core/timing/PerformanceUserTiming.cpp
index 9f8a14added2f769391545f71c43add0158cefd0..e7e6c682960285084bef63a09d028b3d6b4cace9 100644
--- a/Source/core/timing/PerformanceUserTiming.cpp
+++ b/Source/core/timing/PerformanceUserTiming.cpp
@@ -37,7 +37,7 @@ namespace blink {
namespace {
-typedef HashMap<String, NavigationTimingFunction> RestrictedKeyMap;
+using RestrictedKeyMap = HashMap<String, NavigationTimingFunction>;
static RestrictedKeyMap restrictedKeyMap()
{
DEFINE_STATIC_LOCAL(RestrictedKeyMap, map, ());
@@ -168,8 +168,8 @@ static PerformanceEntryVector convertToEntrySequence(const PerformanceEntryMap&
{
PerformanceEntryVector entries;
- for (PerformanceEntryMap::const_iterator it = performanceEntryMap.begin(); it != performanceEntryMap.end(); ++it)
- entries.appendVector(it->value);
+ for (const auto& entry : performanceEntryMap)
+ entries.appendVector(entry.value);
return entries;
}

Powered by Google App Engine
This is Rietveld 408576698