Reordered some logic to fix a bug which caused the clearing of the database to malfunction.
Reordered some logic to fix a bug which caused the clearing of the database to malfunction.

Review URL: http://codereview.chromium.org/10862

git-svn-id: http://src.chromium.org/svn/trunk/src@5365 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

Former-commit-id: a03a1f322d28791239af6fcdafa859e3f1d07b2f
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser