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

Unified Diff: chrome/browser/ui/webui/ntp/app_launcher_handler.cc

Issue 9694038: OBSOLETE REVIEW. See http://codereview.chromium.org/10382149/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 months 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/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;

Powered by Google App Engine
This is Rietveld 408576698