| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "extensions/browser/process_manager.h" | 5 #include "extensions/browser/process_manager.h" |
| 6 | 6 |
| 7 #include "chrome/browser/chrome_notification_types.h" | |
| 8 #include "content/public/browser/content_browser_client.h" | 7 #include "content/public/browser/content_browser_client.h" |
| 9 #include "content/public/browser/notification_service.h" | 8 #include "content/public/browser/notification_service.h" |
| 10 #include "content/public/browser/site_instance.h" | 9 #include "content/public/browser/site_instance.h" |
| 11 #include "content/public/common/content_client.h" | 10 #include "content/public/common/content_client.h" |
| 12 #include "content/public/test/test_browser_context.h" | 11 #include "content/public/test/test_browser_context.h" |
| 13 #include "extensions/browser/extension_registry.h" | 12 #include "extensions/browser/extension_registry.h" |
| 13 #include "extensions/browser/notification_types.h" |
| 14 #include "extensions/browser/process_manager_delegate.h" | 14 #include "extensions/browser/process_manager_delegate.h" |
| 15 #include "extensions/browser/test_extensions_browser_client.h" | 15 #include "extensions/browser/test_extensions_browser_client.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 17 | 17 |
| 18 using content::BrowserContext; | 18 using content::BrowserContext; |
| 19 using content::SiteInstance; | 19 using content::SiteInstance; |
| 20 using content::TestBrowserContext; | 20 using content::TestBrowserContext; |
| 21 | 21 |
| 22 namespace extensions { | 22 namespace extensions { |
| 23 | 23 |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 scoped_refptr<SiteInstance> site21 = | 281 scoped_refptr<SiteInstance> site21 = |
| 282 manager1->GetSiteInstanceForURL(ext2_url1); | 282 manager1->GetSiteInstanceForURL(ext2_url1); |
| 283 EXPECT_NE(site11, site21); | 283 EXPECT_NE(site11, site21); |
| 284 | 284 |
| 285 scoped_refptr<SiteInstance> other_profile_site = | 285 scoped_refptr<SiteInstance> other_profile_site = |
| 286 manager2->GetSiteInstanceForURL(ext1_url1); | 286 manager2->GetSiteInstanceForURL(ext1_url1); |
| 287 EXPECT_NE(site11, other_profile_site); | 287 EXPECT_NE(site11, other_profile_site); |
| 288 } | 288 } |
| 289 | 289 |
| 290 } // namespace extensions | 290 } // namespace extensions |
| OLD | NEW |