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

Unified Diff: chrome/browser/chromeos/login/user_manager.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/chromeos/login/user_manager.cc
===================================================================
--- chrome/browser/chromeos/login/user_manager.cc (revision 106380)
+++ chrome/browser/chromeos/login/user_manager.cc (working copy)
@@ -40,7 +40,7 @@
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
#include "content/browser/browser_thread.h"
-#include "content/common/notification_service.h"
+#include "content/public/browser/notification_service.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/codec/png_codec.h"
@@ -230,7 +230,7 @@
local_state->SavePersistentPrefs();
NotifyLocalStateChanged();
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_LOGIN_USER_IMAGE_CHANGED,
content::Source<UserManager>(this),
content::Details<const User>(&logged_in_user_));
@@ -274,10 +274,10 @@
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
set_current_user_is_owner(is_owner);
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_OWNERSHIP_CHECKED,
- NotificationService::AllSources(),
- NotificationService::NoDetails());
+ content::NotificationService::AllSources(),
+ content::NotificationService::NoDetails());
if (is_owner) {
// Also update cached value.
UserCrosSettingsProvider::UpdateCachedOwner(logged_in_user_.email());
@@ -690,7 +690,7 @@
VLOG(1) << "Updating profile image for logged-in user";
SetLoggedInUserImage(image, User::kProfileImageIndex);
SaveUserImage(logged_in_user_.email(), image, User::kProfileImageIndex);
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_PROFILE_IMAGE_UPDATED,
content::Source<UserManager>(this),
content::Details<const UserManager::User>(&logged_in_user()));
@@ -710,7 +710,7 @@
user_is_logged_in_(false),
last_image_set_async_(false) {
registrar_.Add(this, chrome::NOTIFICATION_OWNER_KEY_FETCH_ATTEMPT_SUCCEEDED,
- NotificationService::AllSources());
+ content::NotificationService::AllSources());
}
UserManager::~UserManager() {
@@ -758,7 +758,7 @@
}
void UserManager::NotifyOnLogin() {
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_LOGIN_USER_CHANGED,
content::Source<UserManager>(this),
content::Details<const User>(&logged_in_user_));
« no previous file with comments | « chrome/browser/chromeos/login/user_image_screen.cc ('k') | chrome/browser/chromeos/login/views_oobe_display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698