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

Unified Diff: chrome/browser/extensions/extension_ui_util.cc

Issue 515563003: Remove dependency of chrome in WebRequestPermissions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated. Created 6 years, 3 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/extensions/extension_ui_util.cc
diff --git a/chrome/browser/extensions/extension_ui_util.cc b/chrome/browser/extensions/extension_ui_util.cc
index 32b9e80d0964a2d21ad0d57811c3e376356ab1b6..4cf4fa89775566d31d8bf15def03738d868f8219 100644
--- a/chrome/browser/extensions/extension_ui_util.cc
+++ b/chrome/browser/extensions/extension_ui_util.cc
@@ -9,6 +9,7 @@
#include "chrome/common/extensions/extension_constants.h"
#include "chrome/common/pref_names.h"
#include "extensions/browser/extension_util.h"
+#include "extensions/common/constants.h"
#include "extensions/common/extension.h"
namespace extensions {
@@ -19,7 +20,7 @@ bool IsBlockedByPolicy(const Extension* app, content::BrowserContext* context) {
Profile* profile = Profile::FromBrowserContext(context);
DCHECK(profile);
- return (app->id() == extension_misc::kWebStoreAppId ||
+ return (app->id() == extensions::kWebStoreAppId ||
app->id() == extension_misc::kEnterpriseWebStoreAppId) &&
profile->GetPrefs()->GetBoolean(prefs::kHideWebStoreIcon);
}
« no previous file with comments | « chrome/browser/extensions/extension_service_unittest.cc ('k') | chrome/browser/extensions/pending_extension_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698