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

Unified Diff: chrome/browser/ui/app_list/app_list_test_util.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/ui/app_list/app_list_test_util.cc
diff --git a/chrome/browser/ui/app_list/app_list_test_util.cc b/chrome/browser/ui/app_list/app_list_test_util.cc
index da8f0791e8ecf7837e53e30abe623ece83773618..e67800b71e1ed72e87c10eb1823464da138fd56b 100644
--- a/chrome/browser/ui/app_list/app_list_test_util.cc
+++ b/chrome/browser/ui/app_list/app_list_test_util.cc
@@ -7,6 +7,7 @@
#include "base/files/file_path.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/common/chrome_constants.h"
+#include "extensions/browser/extension_registry.h"
#include "extensions/common/extension_set.h"
const char AppListTestBase::kHostedAppId[] =
@@ -38,6 +39,5 @@ void AppListTestBase::SetUp() {
service_->Init();
// There should be 5 extensions in the test profile.
- const extensions::ExtensionSet* extensions = service_->extensions();
- ASSERT_EQ(static_cast<size_t>(5), extensions->size());
+ ASSERT_EQ(5U, registry()->enabled_extensions().size());
}
« no previous file with comments | « chrome/browser/themes/theme_syncable_service_unittest.cc ('k') | chrome/browser/ui/ash/ash_keyboard_controller_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698