This source file includes following definitions.
- RegisterPrefs
#include "chrome/browser/notifications/notification_prefs_manager.h"
#include "base/prefs/pref_registry_simple.h"
#include "base/prefs/pref_service.h"
#include "chrome/common/pref_names.h"
NotificationPrefsManager::NotificationPrefsManager(PrefService* prefs) {
#if defined(OS_CHROMEOS)
static bool have_cleared = false;
if (!have_cleared) {
prefs->ClearPref(prefs::kDesktopNotificationPosition);
have_cleared = true;
}
#endif
}
void NotificationPrefsManager::RegisterPrefs(PrefRegistrySimple* registry) {
registry->RegisterIntegerPref(prefs::kDesktopNotificationPosition,
BalloonCollection::DEFAULT_POSITION);
registry->RegisterBooleanPref(prefs::kMessageCenterShowedFirstRunBalloon,
false);
}