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

Unified Diff: extensions/browser/extension_zoom_request_client.cc

Issue 1414643005: Disable zoom bubble for PDF extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test rebuilding patch from .diff file. 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
« no previous file with comments | « extensions/browser/extension_zoom_request_client.h ('k') | extensions/common/api/_behavior_features.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extension_zoom_request_client.cc
diff --git a/extensions/browser/extension_zoom_request_client.cc b/extensions/browser/extension_zoom_request_client.cc
index c954532317188f9ba804a5de36de4d33a584f3f0..ce8b45ce4acc009ec4c491b1978594113f1c14d7 100644
--- a/extensions/browser/extension_zoom_request_client.cc
+++ b/extensions/browser/extension_zoom_request_client.cc
@@ -4,6 +4,9 @@
#include "extensions/browser/extension_zoom_request_client.h"
+#include "extensions/common/features/behavior_feature.h"
+#include "extensions/common/features/feature_provider.h"
+
namespace extensions {
ExtensionZoomRequestClient::ExtensionZoomRequestClient(
@@ -11,6 +14,13 @@ ExtensionZoomRequestClient::ExtensionZoomRequestClient(
: extension_(extension) {
}
+bool ExtensionZoomRequestClient::ShouldSuppressBubble() const {
+ return FeatureProvider::GetBehaviorFeature(
+ BehaviorFeature::kZoomWithoutBubble)
+ ->IsAvailableToExtension(extension())
+ .is_available();
+}
+
ExtensionZoomRequestClient::~ExtensionZoomRequestClient() {
}
« no previous file with comments | « extensions/browser/extension_zoom_request_client.h ('k') | extensions/common/api/_behavior_features.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698