summaryrefslogtreecommitdiffstats
path: root/chrome/browser/webdata
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-14 18:17:22 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-14 18:17:22 +0000
commit60dc931194a31434462332b74dfad1f4fd308a6f (patch)
treeecf4ec6c85f29da69bfbd4b1fce0482eaa7783f3 /chrome/browser/webdata
parentd76adec235c3351bfb4e70097d8bf6239183971b (diff)
downloadchromium_src-60dc931194a31434462332b74dfad1f4fd308a6f.zip
chromium_src-60dc931194a31434462332b74dfad1f4fd308a6f.tar.gz
chromium_src-60dc931194a31434462332b74dfad1f4fd308a6f.tar.bz2
Hide the process of instantiating NotificationServiceImpl from embedders.
Make NotificationService handle the process of instantiating NotificationServiceImpl instead. BUG=98716 R=jam@chromium.org TBR=akalin@chromium.org Review URL: http://codereview.chromium.org/8913009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114454 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/webdata')
-rw-r--r--chrome/browser/webdata/web_database.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/webdata/web_database.cc b/chrome/browser/webdata/web_database.cc
index 99362f7..0d0883f 100644
--- a/chrome/browser/webdata/web_database.cc
+++ b/chrome/browser/webdata/web_database.cc
@@ -13,7 +13,7 @@
#include "chrome/browser/webdata/token_service_table.h"
#include "chrome/browser/webdata/web_apps_table.h"
#include "chrome/browser/webdata/web_intents_table.h"
-#include "content/browser/notification_service_impl.h"
+#include "content/public/browser/notification_service.h"
#include "sql/statement.h"
#include "sql/transaction.h"
@@ -92,7 +92,7 @@ sql::InitStatus WebDatabase::Init(const 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(new NotificationServiceImpl);
+ notification_service_.reset(content::NotificationService::Create());
// Set the exceptional sqlite error handler.
db_.set_error_delegate(GetErrorHandlerForWebDb());