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

Unified Diff: chrome/browser/chromeos/login/user_manager.cc

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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
« no previous file with comments | « chrome/browser/chromeos/login/user_manager.h ('k') | chrome/browser/chromeos/login/views_oobe_display.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/user_manager.cc
===================================================================
--- chrome/browser/chromeos/login/user_manager.cc (revision 91971)
+++ chrome/browser/chromeos/login/user_manager.cc (working copy)
@@ -29,11 +29,11 @@
#include "chrome/browser/defaults.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/prefs/scoped_user_pref_update.h"
+#include "chrome/common/chrome_notification_types.h"
#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/common/notification_type.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/codec/png_codec.h"
@@ -103,9 +103,10 @@
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
g_user_manager.Get().set_current_user_is_owner(is_owner);
- NotificationService::current()->Notify(NotificationType::OWNERSHIP_CHECKED,
- NotificationService::AllSources(),
- NotificationService::NoDetails());
+ NotificationService::current()->Notify(
+ chrome::NOTIFICATION_OWNERSHIP_CHECKED,
+ NotificationService::AllSources(),
+ NotificationService::NoDetails());
if (is_owner) {
// Also update cached value.
UserCrosSettingsProvider::UpdateCachedOwner(
@@ -537,7 +538,7 @@
if (should_save_image)
SaveUserImage(username, image);
NotificationService::current()->Notify(
- NotificationType::LOGIN_USER_IMAGE_CHANGED,
+ chrome::NOTIFICATION_LOGIN_USER_IMAGE_CHANGED,
Source<UserManager>(this),
Details<const User>(&user));
}
@@ -552,7 +553,7 @@
current_user_is_owner_(false),
current_user_is_new_(false),
user_is_logged_in_(false) {
- registrar_.Add(this, NotificationType::OWNER_KEY_FETCH_ATTEMPT_SUCCEEDED,
+ registrar_.Add(this, chrome::NOTIFICATION_OWNER_KEY_FETCH_ATTEMPT_SUCCEEDED,
NotificationService::AllSources());
}
@@ -602,7 +603,7 @@
void UserManager::NotifyOnLogin() {
NotificationService::current()->Notify(
- NotificationType::LOGIN_USER_CHANGED,
+ chrome::NOTIFICATION_LOGIN_USER_CHANGED,
Source<UserManager>(this),
Details<const User>(&logged_in_user_));
@@ -629,10 +630,10 @@
NewRunnableFunction(&CheckOwnership));
}
-void UserManager::Observe(NotificationType type,
+void UserManager::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
- if (type == NotificationType::OWNER_KEY_FETCH_ATTEMPT_SUCCEEDED) {
+ if (type == chrome::NOTIFICATION_OWNER_KEY_FETCH_ATTEMPT_SUCCEEDED) {
BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE,
NewRunnableFunction(&CheckOwnership));
}
« no previous file with comments | « chrome/browser/chromeos/login/user_manager.h ('k') | chrome/browser/chromeos/login/views_oobe_display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698