Unreviewed, fix -Wunused-but-set-variable warning
authormcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 23 Jan 2019 00:32:24 +0000 (00:32 +0000)
committermcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 23 Jan 2019 00:32:24 +0000 (00:32 +0000)
https://bugs.webkit.org/show_bug.cgi?id=193660
<rdar://problem/47433602>

* UIProcess/WebsiteData/WebsiteDataStore.cpp:
(WebKit::WebsiteDataStore::removeData):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@240308 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/ChangeLog
Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp

index 67cb3a1..5addb61 100644 (file)
@@ -1,5 +1,14 @@
 2019-01-22  Michael Catanzaro  <mcatanzaro@igalia.com>
 
+        Unreviewed, fix -Wunused-but-set-variable warning
+        https://bugs.webkit.org/show_bug.cgi?id=193660
+        <rdar://problem/47433602>
+
+        * UIProcess/WebsiteData/WebsiteDataStore.cpp:
+        (WebKit::WebsiteDataStore::removeData):
+
+2019-01-22  Michael Catanzaro  <mcatanzaro@igalia.com>
+
         Unreviewed, further build fixes after r240292
         https://bugs.webkit.org/show_bug.cgi?id=193580
         <rdar://problem/47457742>
index 2a14a5c..b18fce7 100644 (file)
@@ -757,7 +757,9 @@ void WebsiteDataStore::removeData(OptionSet<WebsiteDataType> dataTypes, WallTime
     }
 #endif
 
+#if ENABLE(RESOURCE_LOAD_STATISTICS)
     bool didNotifyNetworkProcessToDeleteWebsiteData = false;
+#endif
     auto networkProcessAccessType = computeNetworkProcessAccessTypeForDataRemoval(dataTypes, !isPersistent());
     if (networkProcessAccessType != ProcessAccessType::None) {
         for (auto& processPool : processPools()) {
@@ -779,7 +781,9 @@ void WebsiteDataStore::removeData(OptionSet<WebsiteDataType> dataTypes, WallTime
             processPool->networkProcess()->deleteWebsiteData(m_sessionID, dataTypes, modifiedSince, [callbackAggregator, processPool] {
                 callbackAggregator->removePendingCallback();
             });
+#if ENABLE(RESOURCE_LOAD_STATISTICS)
             didNotifyNetworkProcessToDeleteWebsiteData = true;
+#endif
         }
     }