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

Unified Diff: chrome/browser/password_manager/password_store_mac.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_mac.cc
===================================================================
--- chrome/browser/password_manager/password_store_mac.cc (revision 106380)
+++ chrome/browser/password_manager/password_store_mac.cc (working copy)
@@ -21,7 +21,7 @@
#include "chrome/browser/password_manager/login_database.h"
#include "chrome/browser/password_manager/password_store_change.h"
#include "chrome/common/chrome_notification_types.h"
-#include "content/common/notification_service.h"
+#include "content/browser/notification_service_impl.h"
using webkit_glue::PasswordForm;
@@ -775,7 +775,7 @@
if (login_metadata_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));
@@ -810,7 +810,7 @@
form));
}
if (!changes.empty()) {
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_LOGINS_CHANGED,
content::Source<PasswordStore>(this),
content::Details<PasswordStoreChangeList>(&changes));
@@ -841,7 +841,7 @@
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));
@@ -875,7 +875,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));
@@ -1013,5 +1013,5 @@
}
void PasswordStoreMac::CreateNotificationService() {
- notification_service_.reset(new NotificationService);
+ notification_service_.reset(new NotificationServiceImpl);
}
« no previous file with comments | « chrome/browser/password_manager/password_store_mac.h ('k') | chrome/browser/password_manager/password_store_x.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698