Skip to content
Permalink
Browse files
2010-03-10 Eric Uhrhane <ericu@chromium.org>
        Reviewed by David Levin.

        The build fix for my patch on bug #35763 wasn't quite right--it removed
        the call entirely, instead of replacing it with the new API.  This adds
        the call to Database::setIsAvailable.

        https://bugs.webkit.org/show_bug.cgi?id=35763

        * WebView.cpp: Added a call to Database::setIsAvailable where change 55667 removed the old Settings API call <http://trac.webkit.org/changeset/55667>.
        (WebView::notifyPreferencesChanged):

Canonical link: https://commits.webkit.org/47104@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@55809 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
eseidel committed Mar 10, 2010
1 parent 32c7c12 commit 143e6ed017c56b198838b8e1dce2e90143fe7428
Showing 2 changed files with 21 additions and 0 deletions.
@@ -1,3 +1,16 @@
2010-03-10 Eric Uhrhane <ericu@chromium.org>

Reviewed by David Levin.

The build fix for my patch on bug #35763 wasn't quite right--it removed
the call entirely, instead of replacing it with the new API. This adds
the call to Database::setIsAvailable.

https://bugs.webkit.org/show_bug.cgi?id=35763

* WebView.cpp: Added a call to Database::setIsAvailable where change 55667 removed the old Settings API call <http://trac.webkit.org/changeset/55667>.
(WebView::notifyPreferencesChanged):

2010-03-10 John Sullivan <sullivan@apple.com>

Reviewed by Tim Hatcher.
@@ -73,6 +73,7 @@
#include <WebCore/ContextMenuController.h>
#include <WebCore/CookieStorageWin.h>
#include <WebCore/Cursor.h>
#include <WebCore/Database.h>
#include <WebCore/Document.h>
#include <WebCore/DragController.h>
#include <WebCore/DragData.h>
@@ -4608,6 +4609,13 @@ HRESULT WebView::notifyPreferencesChanged(IWebNotification* notification)
return hr;
settings->setOfflineWebApplicationCacheEnabled(enabled);

#if ENABLE(DATABASE)
hr = prefsPrivate->databasesEnabled(&enabled);
if (FAILED(hr))
return hr;
Database::setIsAvailable(enabled);
#endif

hr = prefsPrivate->localStorageEnabled(&enabled);
if (FAILED(hr))
return hr;

0 comments on commit 143e6ed

Please sign in to comment.