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

Unified Diff: components/webdata/common/web_database.cc

Issue 16124006: Remove dependency of WebData on notifications (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Create README file Created 7 years, 6 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
« components/webdata/README ('K') | « components/webdata/common/web_database.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/webdata/common/web_database.cc
diff --git a/components/webdata/common/web_database.cc b/components/webdata/common/web_database.cc
index 05d1789d88f6501ea0acfba284700aeda6c3f895..baa765eafe3c1c576b08baa735bc2a247757716e 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.
« components/webdata/README ('K') | « components/webdata/common/web_database.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698