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

Side by Side Diff: third_party/WebKit/Source/modules/navigatorcontentutils/testing/NavigatorContentUtilsClientMock.cpp

Issue 2673543003: Migrate WTF::HashMap::remove() to ::erase() (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "NavigatorContentUtilsClientMock.h" 5 #include "NavigatorContentUtilsClientMock.h"
6 6
7 #include "modules/navigatorcontentutils/NavigatorContentUtilsClient.h" 7 #include "modules/navigatorcontentutils/NavigatorContentUtilsClient.h"
8 #include "platform/weborigin/KURL.h" 8 #include "platform/weborigin/KURL.h"
9 #include "wtf/text/StringHash.h" 9 #include "wtf/text/StringHash.h"
10 10
(...skipping 20 matching lines...) Expand all
31 // function. 31 // function.
32 if (m_protocolMap.contains(scheme)) 32 if (m_protocolMap.contains(scheme))
33 return NavigatorContentUtilsClient::CustomHandlersRegistered; 33 return NavigatorContentUtilsClient::CustomHandlersRegistered;
34 34
35 return NavigatorContentUtilsClient::CustomHandlersNew; 35 return NavigatorContentUtilsClient::CustomHandlersNew;
36 } 36 }
37 37
38 void NavigatorContentUtilsClientMock::unregisterProtocolHandler( 38 void NavigatorContentUtilsClientMock::unregisterProtocolHandler(
39 const String& scheme, 39 const String& scheme,
40 const KURL& url) { 40 const KURL& url) {
41 m_protocolMap.remove(scheme); 41 m_protocolMap.erase(scheme);
42 } 42 }
43 43
44 } // namespace blink 44 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/mediastream/MediaStreamRegistry.cpp ('k') | third_party/WebKit/Source/modules/nfc/NFC.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698