Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(455)

Unified Diff: chrome/browser/extensions/webstore_startup_installer_browsertest.cc

Issue 709813004: Remove the deprecated function ExtensionService::extensions(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed thestig@'s comments. Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/webstore_startup_installer_browsertest.cc
diff --git a/chrome/browser/extensions/webstore_startup_installer_browsertest.cc b/chrome/browser/extensions/webstore_startup_installer_browsertest.cc
index a67482d7de49b30c31e2314fdd06c3bee617b413..1662694ba471cf436c462be30d9d0ece2b6ca830 100644
--- a/chrome/browser/extensions/webstore_startup_installer_browsertest.cc
+++ b/chrome/browser/extensions/webstore_startup_installer_browsertest.cc
@@ -65,9 +65,10 @@ IN_PROC_BROWSER_TEST_F(WebstoreStartupInstallerTest, Install) {
RunTest("runTest");
+ extensions::ExtensionRegistry* registry =
+ extensions::ExtensionRegistry::Get(browser()->profile());
const extensions::Extension* extension =
- extensions::ExtensionRegistry::Get(
- browser()->profile())->enabled_extensions().GetByID(kTestExtensionId);
+ registry->enabled_extensions().GetByID(kTestExtensionId);
EXPECT_TRUE(extension);
}
@@ -162,15 +163,17 @@ IN_PROC_BROWSER_TEST_F(WebstoreStartupInstallerTest, InstallFromHostedApp) {
ExtensionService* extension_service =
extensions::ExtensionSystem::Get(browser()->profile())->
extension_service();
+ extensions::ExtensionRegistry* registry =
+ extensions::ExtensionRegistry::Get(browser()->profile());
extension_service->AddExtension(hosted_app.get());
- EXPECT_TRUE(extension_service->extensions()->Contains(hosted_app->id()));
+ EXPECT_TRUE(registry->enabled_extensions().GetByID(hosted_app->id()));
ui_test_utils::NavigateToURL(browser(), kInstallUrl);
- EXPECT_FALSE(extension_service->extensions()->Contains(kTestExtensionId));
+ EXPECT_FALSE(registry->enabled_extensions().GetByID(kTestExtensionId));
RunTest("runTest");
- EXPECT_TRUE(extension_service->extensions()->Contains(kTestExtensionId));
+ EXPECT_TRUE(registry->enabled_extensions().GetByID(kTestExtensionId));
}
class WebstoreStartupInstallerSupervisedUsersTest

Powered by Google App Engine
This is Rietveld 408576698