summaryrefslogtreecommitdiffstats
path: root/components/webdata/common/web_database.cc
diff options
context:
space:
mode:
authordroger@chromium.org <droger@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-10 19:23:00 +0000
committerdroger@chromium.org <droger@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-10 19:23:00 +0000
commit8b1c3a254f6e1eaa769aa09a48ad03d9802bddb6 (patch)
tree5d20c6a766123f9bbf834060b23848eb96fc89b3 /components/webdata/common/web_database.cc
parentf6d21d18df3cc2916fe4715cf4c2cdc64229b87e (diff)
downloadchromium_src-8b1c3a254f6e1eaa769aa09a48ad03d9802bddb6.zip
chromium_src-8b1c3a254f6e1eaa769aa09a48ad03d9802bddb6.tar.gz
chromium_src-8b1c3a254f6e1eaa769aa09a48ad03d9802bddb6.tar.bz2
Remove dependency of WebData on notifications
The notification code was actually unused in WebData. This CL removes the code and enforces the lack of dependency. BUG=248049 Review URL: https://chromiumcodereview.appspot.com/16124006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205269 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/webdata/common/web_database.cc')
-rw-r--r--components/webdata/common/web_database.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/components/webdata/common/web_database.cc b/components/webdata/common/web_database.cc
index 05d1789..baa765e 100644
--- a/components/webdata/common/web_database.cc
+++ b/components/webdata/common/web_database.cc
@@ -7,7 +7,6 @@
#include <algorithm>
#include "base/stl_util.h"
-#include "content/public/browser/notification_service.h"
#include "sql/statement.h"
#include "sql/transaction.h"
@@ -70,11 +69,6 @@ sql::Connection* WebDatabase::GetSQLConnection() {
}
sql::InitStatus WebDatabase::Init(const base::FilePath& db_name) {
- // When running in unit tests, there is already a NotificationService object.
- // Since only one can exist at a time per thread, check first.
- if (!content::NotificationService::current())
- notification_service_.reset(content::NotificationService::Create());
-
db_.set_histogram_tag("Web");
// We don't store that much data in the tables so use a small page size.