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

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

Issue 2081103002: Rename PermissionBubbleManager to PermissionRequestManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 4 years, 5 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 8f2fceb30066b678c8e48ac030d4125d19474291..17247d4a13c0d50d1b093d8ebb07f5063355aa77 100644
--- a/chrome/browser/download/download_request_limiter.cc
+++ b/chrome/browser/download/download_request_limiter.cc
@@ -31,7 +31,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;
@@ -135,7 +135,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
@@ -169,10 +169,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(
+ 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