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

Unified Diff: third_party/WebKit/Source/core/page/Page.cpp

Issue 2696183002: Migrate WTF::HashSet::remove() to ::erase() [part 1] (Closed)
Patch Set: one more platform-specific reference Created 3 years, 10 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: third_party/WebKit/Source/core/page/Page.cpp
diff --git a/third_party/WebKit/Source/core/page/Page.cpp b/third_party/WebKit/Source/core/page/Page.cpp
index 23f5e9954f6d3befac17aa5893b26a1f72356b9c..d5771fbc942596547437f4eb2b820f1b20f1b343 100644
--- a/third_party/WebKit/Source/core/page/Page.cpp
+++ b/third_party/WebKit/Source/core/page/Page.cpp
@@ -524,8 +524,8 @@ void Page::willBeDestroyed() {
mainFrame->detach(FrameDetachType::Remove);
ASSERT(allPages().contains(this));
- allPages().remove(this);
- ordinaryPages().remove(this);
+ allPages().erase(this);
+ ordinaryPages().erase(this);
if (m_scrollingCoordinator)
m_scrollingCoordinator->willBeDestroyed();

Powered by Google App Engine
This is Rietveld 408576698