Rework http://trac.webkit.org/changeset/55443 to avoid #ifdefs in Page.cpp One idea is to move the body of Page::privateBrowsingStateChanged to a static function on PluginView. That function would be passed the Page, and it would then iterate over the list of PluginViews and notify each. This way PluginViewNone.cpp can just have an empty body for that static method.
*** This bug has been marked as a duplicate of bug 35623 ***