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

Unified Diff: chrome/browser/chrome_quota_permission_context.cc

Issue 1884073002: Add a new metric for how many times permissions prompts are shown. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Feedback Created 4 years, 8 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 | « no previous file | chrome/browser/custom_handlers/register_protocol_handler_permission_request.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_quota_permission_context.cc
diff --git a/chrome/browser/chrome_quota_permission_context.cc b/chrome/browser/chrome_quota_permission_context.cc
index a517382a490cd5e10dcb42df61c9f9be845a495b..306ccacf58bd6341ee1b4b0143cc3bf2867a1038 100644
--- a/chrome/browser/chrome_quota_permission_context.cc
+++ b/chrome/browser/chrome_quota_permission_context.cc
@@ -52,6 +52,7 @@ class QuotaPermissionRequest : public PermissionBubbleRequest {
~QuotaPermissionRequest() override;
+ private:
// PermissionBubbleRequest:
int GetIconId() const override;
base::string16 GetMessageText() const override;
@@ -61,8 +62,8 @@ class QuotaPermissionRequest : public PermissionBubbleRequest {
void PermissionDenied() override;
void Cancelled() override;
void RequestFinished() override;
+ PermissionBubbleType GetPermissionBubbleType() const override;
- private:
scoped_refptr<ChromeQuotaPermissionContext> context_;
GURL origin_url_;
int64_t requested_quota_;
@@ -131,6 +132,10 @@ void QuotaPermissionRequest::RequestFinished() {
delete this;
}
+PermissionBubbleType QuotaPermissionRequest::GetPermissionBubbleType() const {
+ return PermissionBubbleType::QUOTA;
+}
+
#if defined(OS_ANDROID)
// RequestQuotaInfoBarDelegate ------------------------------------------------
« no previous file with comments | « no previous file | chrome/browser/custom_handlers/register_protocol_handler_permission_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698