[MSVC] WebResourceLoadStatisticsStore.h is reporting warning C4804: '/': unsafe use of type 'bool' in operation
https://bugs.webkit.org/show_bug.cgi?id=204870

Reviewed by Darin Adler.

This patch converts storageAccessGranted to a char since makeString()
does not explicitly accept bool types.

* NetworkProcess/Classifier/WebResourceLoadStatisticsStore.h:
(WebKit::ThirdPartyDataForSpecificFirstParty::toString const):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@253155 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebKit/ChangeLog b/Source/WebKit/ChangeLog
index 2b75af6..db97b71 100644
--- a/Source/WebKit/ChangeLog
+++ b/Source/WebKit/ChangeLog
@@ -1,3 +1,16 @@
+2019-12-05  Kate Cheney  <katherine_cheney@apple.com>
+
+        [MSVC] WebResourceLoadStatisticsStore.h is reporting warning C4804: '/': unsafe use of type 'bool' in operation
+        https://bugs.webkit.org/show_bug.cgi?id=204870
+
+        Reviewed by Darin Adler.
+
+        This patch converts storageAccessGranted to a char since makeString()
+        does not explicitly accept bool types.
+
+        * NetworkProcess/Classifier/WebResourceLoadStatisticsStore.h:
+        (WebKit::ThirdPartyDataForSpecificFirstParty::toString const):
+
 2019-12-05  Philippe Normand  <pnormand@igalia.com>
 
         [GLib] Display GStreamer version in about:gpu page
diff --git a/Source/WebKit/NetworkProcess/Classifier/WebResourceLoadStatisticsStore.h b/Source/WebKit/NetworkProcess/Classifier/WebResourceLoadStatisticsStore.h
index d3f9cf0..c591fc2 100644
--- a/Source/WebKit/NetworkProcess/Classifier/WebResourceLoadStatisticsStore.h
+++ b/Source/WebKit/NetworkProcess/Classifier/WebResourceLoadStatisticsStore.h
@@ -84,7 +84,7 @@
 
     String toString() const
     {
-        return makeString("Has been granted storage access under ", firstPartyDomain.string(), ": ", storageAccessGranted);
+        return makeString("Has been granted storage access under ", firstPartyDomain.string(), ": ", storageAccessGranted ? '1' : '0');
     }
 
     bool operator==(ThirdPartyDataForSpecificFirstParty const other) const