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

Unified Diff: chrome/browser/password_manager/password_store_default.cc

Issue 8342048: Make NotificationService an interface in the content namespace, and switch callers to use it. Mov... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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
Index: chrome/browser/password_manager/password_store_default.cc
===================================================================
--- chrome/browser/password_manager/password_store_default.cc (revision 106380)
+++ chrome/browser/password_manager/password_store_default.cc (working copy)
@@ -16,7 +16,7 @@
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/pref_names.h"
#include "content/browser/browser_thread.h"
-#include "content/common/notification_service.h"
+#include "content/public/browser/notification_service.h"
using webkit_glue::PasswordForm;
@@ -130,7 +130,7 @@
if (login_db_->AddLogin(form)) {
PasswordStoreChangeList changes;
changes.push_back(PasswordStoreChange(PasswordStoreChange::ADD, form));
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_LOGINS_CHANGED,
content::Source<PasswordStore>(this),
content::Details<PasswordStoreChangeList>(&changes));
@@ -141,7 +141,7 @@
if (login_db_->UpdateLogin(form, NULL)) {
PasswordStoreChangeList changes;
changes.push_back(PasswordStoreChange(PasswordStoreChange::UPDATE, form));
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_LOGINS_CHANGED,
content::Source<PasswordStore>(this),
content::Details<PasswordStoreChangeList>(&changes));
@@ -152,7 +152,7 @@
if (login_db_->RemoveLogin(form)) {
PasswordStoreChangeList changes;
changes.push_back(PasswordStoreChange(PasswordStoreChange::REMOVE, form));
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_LOGINS_CHANGED,
content::Source<PasswordStore>(this),
content::Details<PasswordStoreChangeList>(&changes));
@@ -170,7 +170,7 @@
changes.push_back(PasswordStoreChange(PasswordStoreChange::REMOVE,
**it));
}
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_LOGINS_CHANGED,
content::Source<PasswordStore>(this),
content::Details<PasswordStoreChangeList>(&changes));
« no previous file with comments | « chrome/browser/oom_priority_manager_browsertest.cc ('k') | chrome/browser/password_manager/password_store_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698