| Index: chrome/browser/automation/testing_automation_provider.cc
|
| diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc
|
| index e26268b97aaa05dc3e5f8d29e5d739bfbf044066..9c32bda0dec8e02a6785446dacf801b878a490ba 100644
|
| --- a/chrome/browser/automation/testing_automation_provider.cc
|
| +++ b/chrome/browser/automation/testing_automation_provider.cc
|
| @@ -4088,7 +4088,7 @@ ListValue* GetHostPermissions(const Extension* ext, bool effective_perm) {
|
| if (effective_perm)
|
| pattern_set = ext->GetEffectiveHostPermissions();
|
| else
|
| - pattern_set = ext->permission_set()->explicit_hosts();
|
| + pattern_set = ext->GetActivePermissions()->explicit_hosts();
|
|
|
| ListValue* permissions = new ListValue;
|
| for (URLPatternSet::const_iterator perm = pattern_set.begin();
|
| @@ -4101,7 +4101,8 @@ ListValue* GetHostPermissions(const Extension* ext, bool effective_perm) {
|
|
|
| ListValue* GetAPIPermissions(const Extension* ext) {
|
| ListValue* permissions = new ListValue;
|
| - std::set<std::string> perm_list = ext->permission_set()->GetAPIsAsStrings();
|
| + std::set<std::string> perm_list =
|
| + ext->GetActivePermissions()->GetAPIsAsStrings();
|
| for (std::set<std::string>::const_iterator perm = perm_list.begin();
|
| perm != perm_list.end(); ++perm) {
|
| permissions->Append(new StringValue(perm->c_str()));
|
|
|