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

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

Issue 1414643005: Disable zoom bubble for PDF extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Need to check for valid client before early out. Created 5 years, 2 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_util.cc
diff --git a/chrome/browser/extensions/extension_util.cc b/chrome/browser/extensions/extension_util.cc
index 9696561e0aeb58c34f8e312e7175ef498068c944..a9ecb42aa12403ec6e96e4ddc517f220806c9675 100644
--- a/chrome/browser/extensions/extension_util.cc
+++ b/chrome/browser/extensions/extension_util.cc
@@ -198,6 +198,13 @@ bool CanLoadInIncognito(const Extension* extension,
IsIncognitoEnabled(extension->id(), context);
}
+bool ZoomWithoutBubble(const Extension* extension) {
Ken Rockot(use gerrit already) 2015/10/21 16:53:30 nit: How about "CanZoomWithoutBubble" or "AllowZoo
wjmaclean 2015/10/21 16:59:46 Done. I like "AllowZoomWithoutBubble()" ... let's
+ return FeatureProvider::GetBehaviorFeature(
+ BehaviorFeature::kZoomWithoutBubble)
+ ->IsAvailableToExtension(extension)
+ .is_available();
+}
+
bool AllowFileAccess(const std::string& extension_id,
content::BrowserContext* context) {
return base::CommandLine::ForCurrentProcess()->HasSwitch(

Powered by Google App Engine
This is Rietveld 408576698