<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - WebKit2 should allow clients to use different plug-in load policies for private browsing."
   href="https://bugs.webkit.org/show_bug.cgi?id=156540#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - WebKit2 should allow clients to use different plug-in load policies for private browsing."
   href="https://bugs.webkit.org/show_bug.cgi?id=156540">bug 156540</a>
              from <span class="vcard"><a class="email" href="mailto:andersca&#64;apple.com" title="Anders Carlsson &lt;andersca&#64;apple.com&gt;"> <span class="fn">Anders Carlsson</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=276333&amp;action=diff" name="attach_276333" title="Patch 1">attachment 276333</a> <a href="attachment.cgi?id=276333&amp;action=edit" title="Patch 1">[details]</a></span>
Patch 1

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=276333&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=276333&amp;action=review</a>

<span class="quote">&gt; Source/WebKit2/UIProcess/WebProcessPool.cpp:1320
&gt; +void WebProcessPool::setPluginLoadClientPolicyForBrowsingMode(bool forPrivateBrowsing, WebCore::PluginLoadClientPolicy policy, const String&amp; host, const String&amp; bundleIdentifier, const String&amp; versionString)</span >

Instead of a boolean here, use an enum class. Something like.

enum class ForPrivateBrowsing {
    No,
    Yes
};

<span class="quote">&gt; Source/WebKit2/WebProcess/WebProcess.h:373
&gt; +    void setPluginLoadClientPolicyFromCreationParameters(HashMap&lt;String, HashMap&lt;String, HashMap&lt;String, uint8_t&gt;&gt;&gt; *, bool);</span >

This hash map should be a const reference. Also, I think you can just call it setPluginLoadClientPolicies.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>