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

Side by Side Diff: chrome/browser/download/download_permission_request.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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/download/download_permission_request.h" 5 #include "chrome/browser/download/download_permission_request.h"
6 6
7 #include "chrome/grit/generated_resources.h" 7 #include "chrome/grit/generated_resources.h"
8 #include "content/public/browser/web_contents.h" 8 #include "content/public/browser/web_contents.h"
9 #include "grit/theme_resources.h" 9 #include "grit/theme_resources.h"
10 #include "ui/base/l10n/l10n_util.h" 10 #include "ui/base/l10n/l10n_util.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 void DownloadPermissionRequest::Cancelled() { 52 void DownloadPermissionRequest::Cancelled() {
53 if (host_) { 53 if (host_) {
54 // This may invalidate |host_|. 54 // This may invalidate |host_|.
55 host_->CancelOnce(); 55 host_->CancelOnce();
56 } 56 }
57 } 57 }
58 58
59 void DownloadPermissionRequest::RequestFinished() { 59 void DownloadPermissionRequest::RequestFinished() {
60 delete this; 60 delete this;
61 } 61 }
62
63 PermissionBubbleType DownloadPermissionRequest::GetPermissionBubbleType()
64 const {
65 return PermissionBubbleType::DOWNLOAD;
66 }
OLDNEW
« no previous file with comments | « chrome/browser/download/download_permission_request.h ('k') | chrome/browser/media/media_stream_devices_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698