| Index: chrome/browser/extensions/api/push_messaging/push_messaging_apitest.cc
|
| diff --git a/chrome/browser/extensions/api/push_messaging/push_messaging_apitest.cc b/chrome/browser/extensions/api/push_messaging/push_messaging_apitest.cc
|
| index e176f3261a089b12df68193ae405119df791984a..4cef006ca4c02300119de88d1da13ce8da12d680 100644
|
| --- a/chrome/browser/extensions/api/push_messaging/push_messaging_apitest.cc
|
| +++ b/chrome/browser/extensions/api/push_messaging/push_messaging_apitest.cc
|
| @@ -21,6 +21,7 @@
|
| #include "components/invalidation/invalidation_service.h"
|
| #include "components/invalidation/profile_invalidation_provider.h"
|
| #include "components/keyed_service/core/keyed_service.h"
|
| +#include "extensions/test/result_catcher.h"
|
| #include "google/cacheinvalidation/types.pb.h"
|
| #include "testing/gmock/include/gmock/gmock.h"
|
|
|
| @@ -113,7 +114,7 @@ class PushMessagingApiTest : public ExtensionApiTest {
|
|
|
| IN_PROC_BROWSER_TEST_F(PushMessagingApiTest, EventDispatch) {
|
| ResultCatcher catcher;
|
| - catcher.RestrictToProfile(profile());
|
| + catcher.RestrictToBrowserContext(profile());
|
|
|
| const extensions::Extension* extension =
|
| LoadExtension(test_data_dir_.AppendASCII("push_messaging"));
|
| @@ -130,7 +131,7 @@ IN_PROC_BROWSER_TEST_F(PushMessagingApiTest, EventDispatch) {
|
| // that we install.
|
| IN_PROC_BROWSER_TEST_F(PushMessagingApiTest, ReceivesPush) {
|
| ResultCatcher catcher;
|
| - catcher.RestrictToProfile(profile());
|
| + catcher.RestrictToBrowserContext(profile());
|
|
|
| const extensions::Extension* extension =
|
| LoadExtension(test_data_dir_.AppendASCII("push_messaging"));
|
| @@ -196,7 +197,7 @@ IN_PROC_BROWSER_TEST_F(PushMessagingApiTest, Restart) {
|
| // Test that GetChannelId fails if no user is signed in.
|
| IN_PROC_BROWSER_TEST_F(PushMessagingApiTest, GetChannelId) {
|
| ResultCatcher catcher;
|
| - catcher.RestrictToProfile(profile());
|
| + catcher.RestrictToBrowserContext(profile());
|
|
|
| const extensions::Extension* extension =
|
| LoadExtension(test_data_dir_.AppendASCII("push_messaging"));
|
|
|