summaryrefslogtreecommitdiffstats
path: root/chrome/browser/notifications/notification_prefs_manager.cc
blob: 58c005e083bd86bf41b30095599e845e3956c59a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/notifications/notification_prefs_manager.h"

#include "chrome/browser/prefs/pref_service.h"
#include "chrome/common/pref_names.h"

// static
void NotificationPrefsManager::RegisterPrefs(PrefService* prefs) {
  prefs->RegisterIntegerPref(prefs::kDesktopNotificationPosition,
                             BalloonCollection::DEFAULT_POSITION);
#if defined(OS_CHROMEOS)
  // Option menu for changing desktop notification position on ChromeOS is
  // disabled. Force preference to default.
  prefs->SetInteger(prefs::kDesktopNotificationPosition,
                    BalloonCollection::DEFAULT_POSITION);
#endif
}