| Index: chrome/browser/ui/webui/ntp/app_launcher_handler.cc
|
| ===================================================================
|
| --- chrome/browser/ui/webui/ntp/app_launcher_handler.cc (revision 136836)
|
| +++ chrome/browser/ui/webui/ntp/app_launcher_handler.cc (working copy)
|
| @@ -113,6 +113,9 @@
|
| !service->GetTerminatedExtension(extension->id());
|
| extension->GetBasicInfo(enabled, value);
|
|
|
| + value->SetBoolean("mayDisable", service->extension_management_policy()->
|
| + UserMayModifyStatus(extension, NULL));
|
| +
|
| bool icon_big_exists = true;
|
| // Instead of setting grayscale here, we do it in apps_page.js.
|
| GURL icon_big =
|
| @@ -602,7 +605,8 @@
|
| if (!extension)
|
| return;
|
|
|
| - if (!Extension::UserMayDisable(extension->location())) {
|
| + if (!extension_service_->extension_management_policy()->
|
| + UserMayModifyStatus(extension, NULL)) {
|
| LOG(ERROR) << "Attempt to uninstall an extension that is non-usermanagable "
|
| << "was made. Extension id : " << extension->id();
|
| return;
|
|
|