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

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

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/NetworkStateNotifier.cpp
diff --git a/third_party/WebKit/Source/core/page/NetworkStateNotifier.cpp b/third_party/WebKit/Source/core/page/NetworkStateNotifier.cpp
index e6658bded3b8b61266228af695f071f8062ddfe4..26fe7a4e9db93705ab194cb7ab743b1f8b16fe04 100644
--- a/third_party/WebKit/Source/core/page/NetworkStateNotifier.cpp
+++ b/third_party/WebKit/Source/core/page/NetworkStateNotifier.cpp
@@ -30,7 +30,6 @@
#include "core/page/Page.h"
#include "wtf/Assertions.h"
#include "wtf/Functional.h"
-#include "wtf/PtrUtil.h"
#include "wtf/StdLibExtras.h"
#include "wtf/Threading.h"
@@ -74,7 +73,7 @@ void NetworkStateNotifier::addObserver(NetworkStateObserver* observer, Execution
MutexLocker locker(m_mutex);
ObserverListMap::AddResult result = m_observers.add(context, nullptr);
if (result.isNewEntry)
- result.storedValue->value = wrapUnique(new ObserverList);
+ result.storedValue->value = adoptPtr(new ObserverList);
ASSERT(result.storedValue->value->observers.find(observer) == kNotFound);
result.storedValue->value->observers.append(observer);
« no previous file with comments | « third_party/WebKit/Source/core/page/NetworkStateNotifier.h ('k') | third_party/WebKit/Source/core/page/PrintContextTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698