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

Unified Diff: third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp

Issue 2799573003: Migrate WTF::HashCountedSet::remove() to ::erase() (Closed)
Patch Set: Created 3 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: third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
index 57c9a5d0129ff2c32451d5ff30dda87a03f7b86b..8828f7e9a8b178fabe61f7109b89d5a9d0e47606 100644
--- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
@@ -201,7 +201,7 @@ static void removeUnloadEventListener(LocalDOMWindow* domWindow) {
DOMWindowSet::iterator it = set.find(domWindow);
if (it == set.end())
return;
- set.remove(it);
+ set.erase(it);
if (set.isEmpty()) {
updateSuddenTerminationStatus(domWindow, false,
LocalFrameClient::UnloadHandler);
@@ -235,7 +235,7 @@ static void removeBeforeUnloadEventListener(LocalDOMWindow* domWindow) {
DOMWindowSet::iterator it = set.find(domWindow);
if (it == set.end())
return;
- set.remove(it);
+ set.erase(it);
if (set.isEmpty()) {
updateSuddenTerminationStatus(domWindow, false,
LocalFrameClient::BeforeUnloadHandler);
« no previous file with comments | « third_party/WebKit/Source/core/frame/EventHandlerRegistry.cpp ('k') | third_party/WebKit/Source/core/html/HTMLDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698