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

Unified Diff: chrome/browser/download/download_request_limiter.cc

Issue 1686903002: [Abandoned] Rename PermissionBubbleManager to PermissionRequestManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tests compile 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
Index: chrome/browser/download/download_request_limiter.cc
diff --git a/chrome/browser/download/download_request_limiter.cc b/chrome/browser/download/download_request_limiter.cc
index 194910bed829a966f93a3c48731e39c3e918e13f..c6538134fdd3a210cec460402cf90c01eb05413f 100644
--- a/chrome/browser/download/download_request_limiter.cc
+++ b/chrome/browser/download/download_request_limiter.cc
@@ -30,7 +30,7 @@
#include "chrome/browser/download/download_request_infobar_delegate_android.h"
#else
#include "chrome/browser/download/download_permission_request.h"
-#include "chrome/browser/ui/website_settings/permission_bubble_manager.h"
+#include "chrome/browser/permissions/permission_request_manager.h"
#endif
using content::BrowserThread;
@@ -108,7 +108,7 @@ void DownloadRequestLimiter::TabDownloadState::DidGetUserInteraction(
bool promptable = InfoBarService::FromWebContents(web_contents()) != nullptr;
#else
bool promptable =
- PermissionBubbleManager::FromWebContents(web_contents()) != nullptr;
+ PermissionRequestManager::FromWebContents(web_contents()) != nullptr;
#endif
// See PromptUserForDownload(): if there's no InfoBarService, then
@@ -142,10 +142,10 @@ void DownloadRequestLimiter::TabDownloadState::PromptUserForDownload(
DownloadRequestInfoBarDelegateAndroid::Create(
InfoBarService::FromWebContents(web_contents_), factory_.GetWeakPtr());
#else
- PermissionBubbleManager* bubble_manager =
- PermissionBubbleManager::FromWebContents(web_contents_);
- if (bubble_manager) {
- bubble_manager->AddRequest(new DownloadPermissionRequest(
+ PermissionRequestManager* permission_request_manager =
+ PermissionRequestManager::FromWebContents(web_contents_);
+ if (permission_request_manager) {
+ permission_request_manager->AddRequest(new DownloadPermissionRequest(
factory_.GetWeakPtr()));
} else {
Cancel();
« no previous file with comments | « chrome/browser/download/download_browsertest.cc ('k') | chrome/browser/download/download_request_limiter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698