| Index: chrome/browser/policy/policy_browsertest.cc
|
| diff --git a/chrome/browser/policy/policy_browsertest.cc b/chrome/browser/policy/policy_browsertest.cc
|
| index 753d1673437516522aabb07d44c037005c29c661..89fb7f1b57546349dc4aaee36d75d4d2fc56b3cb 100644
|
| --- a/chrome/browser/policy/policy_browsertest.cc
|
| +++ b/chrome/browser/policy/policy_browsertest.cc
|
| @@ -722,12 +722,12 @@ class PolicyTest : public InProcessBrowserTest {
|
| installer->Load(extension_path);
|
| observer.Wait();
|
|
|
| - const extensions::ExtensionSet* extensions =
|
| - extension_service()->extensions();
|
| - for (extensions::ExtensionSet::const_iterator it = extensions->begin();
|
| - it != extensions->end(); ++it) {
|
| - if ((*it)->path() == extension_path)
|
| - return it->get();
|
| + extensions::ExtensionRegistry* registry =
|
| + extensions::ExtensionRegistry::Get(browser()->profile());
|
| + for (const scoped_refptr<const extensions::Extension>& extension :
|
| + registry->enabled_extensions()) {
|
| + if (extension->path() == extension_path)
|
| + return extension.get();
|
| }
|
| return NULL;
|
| }
|
|
|