Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Unified Diff: Source/WebCore/page/Page.cpp

Issue 13861033: Remove Apple's unused implementation of private browsing from WebCore (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/WebCore/page/Page.cpp
diff --git a/Source/WebCore/page/Page.cpp b/Source/WebCore/page/Page.cpp
index 3aec289acc596dfd407ae5702a6e3f90e546df08..054a5a5f85c73f8522f748982d5c5234980fe8f2 100644
--- a/Source/WebCore/page/Page.cpp
+++ b/Source/WebCore/page/Page.cpp
@@ -1040,22 +1040,6 @@ void Page::storageBlockingStateChanged()
pluginViewBases[i]->storageBlockingStateChanged();
}
-void Page::privateBrowsingStateChanged()
-{
- bool privateBrowsingEnabled = m_settings->privateBrowsingEnabled();
-
- for (Frame* frame = mainFrame(); frame; frame = frame->tree()->traverseNext())
- frame->document()->privateBrowsingStateDidChange();
-
- // Collect the PluginViews in to a vector to ensure that action the plug-in takes
- // from below privateBrowsingStateChanged does not affect their lifetime.
- Vector<RefPtr<PluginViewBase>, 32> pluginViewBases;
- collectPluginViews(pluginViewBases);
-
- for (size_t i = 0; i < pluginViewBases.size(); ++i)
- pluginViewBases[i]->privateBrowsingStateChanged(privateBrowsingEnabled);
-}
-
#if !ASSERT_DISABLED
void Page::checkSubframeCountConsistency() const
{

Powered by Google App Engine
This is Rietveld 408576698