| Index: chrome/test/functional/notifications.py
|
| diff --git a/chrome/test/functional/notifications.py b/chrome/test/functional/notifications.py
|
| index b15fbb214591912eb53cf54e23f82865b69bc306..b267388ce059ad6fa55a405cd06c4550448a0ad0 100644
|
| --- a/chrome/test/functional/notifications.py
|
| +++ b/chrome/test/functional/notifications.py
|
| @@ -1,5 +1,5 @@
|
| #!/usr/bin/python
|
| -# Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
| +# Copyright (c) 2011 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.
|
|
|
| @@ -36,19 +36,20 @@ class NotificationsTest(pyauto.PyUITest):
|
| import pprint
|
| pp = pprint.PrettyPrinter(indent=2)
|
| pp.pprint(self.GetActiveNotifications())
|
| + pp.pprint(self._GetDefaultPermissionSetting())
|
|
|
| def _SetDefaultPermissionSetting(self, setting):
|
| """Sets the default setting for whether sites are allowed to create
|
| notifications.
|
| """
|
| - self.SetPrefs(pyauto.kDesktopNotificationDefaultContentSetting, setting)
|
| + self.SetPrefs(pyauto.kDefaultContentSettings, {u'notifications': setting})
|
|
|
| def _GetDefaultPermissionSetting(self):
|
| """Gets the default setting for whether sites are allowed to create
|
| notifications.
|
| """
|
| return self.GetPrefsInfo().Prefs(
|
| - pyauto.kDesktopNotificationDefaultContentSetting)
|
| + pyauto.kDefaultContentSettings)[u'notifications']
|
|
|
| def _GetDeniedOrigins(self):
|
| """Gets the list of origins that are explicitly denied to create
|
|
|