Resource Load Statistics: Pick up ITP debug mode flag from defaults
authorwilander@apple.com <wilander@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Mar 2018 23:48:23 +0000 (23:48 +0000)
committerwilander@apple.com <wilander@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Mar 2018 23:48:23 +0000 (23:48 +0000)
https://bugs.webkit.org/show_bug.cgi?id=183956
<rdar://problem/38559574>

Reviewed by Brent Fulgham.

* UIProcess/Cocoa/WebResourceLoadStatisticsStoreCocoa.mm:
(WebKit::WebResourceLoadStatisticsStore::registerUserDefaultsIfNeeded):

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

Source/WebKit/ChangeLog
Source/WebKit/UIProcess/Cocoa/WebResourceLoadStatisticsStoreCocoa.mm

index ac06ec7..63597ad 100644 (file)
@@ -1,3 +1,14 @@
+2018-03-23  John Wilander  <wilander@apple.com>
+
+        Resource Load Statistics: Pick up ITP debug mode flag from defaults
+        https://bugs.webkit.org/show_bug.cgi?id=183956
+        <rdar://problem/38559574>
+
+        Reviewed by Brent Fulgham.
+
+        * UIProcess/Cocoa/WebResourceLoadStatisticsStoreCocoa.mm:
+        (WebKit::WebResourceLoadStatisticsStore::registerUserDefaultsIfNeeded):
+
 2018-03-23  Wenson Hsieh  <wenson_hsieh@apple.com>
 
         [Extra zoom mode] Adopt list view controller UI for select menus
index 20faf9f..5075fc8 100644 (file)
@@ -50,6 +50,7 @@ void WebResourceLoadStatisticsStore::registerUserDefaultsIfNeeded()
             setGrandfatheringTime(grandfatheringTime);
 
         setDebugLogggingEnabled([[NSUserDefaults standardUserDefaults] boolForKey:@"ResourceLoadStatisticsDebugLoggingEnabled"]);
+        setResourceLoadStatisticsDebugMode([[NSUserDefaults standardUserDefaults] boolForKey:@"ExperimentalResourceLoadStatisticsDebugMode"]);
     });
 }