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

Unified Diff: chrome/browser/storage/durable_storage_permission_infobar_delegate.cc

Issue 1332293002: permissions: switch from explicitly passing queue controller to callbacks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 3 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 | « chrome/browser/storage/durable_storage_permission_infobar_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/storage/durable_storage_permission_infobar_delegate.cc
diff --git a/chrome/browser/storage/durable_storage_permission_infobar_delegate.cc b/chrome/browser/storage/durable_storage_permission_infobar_delegate.cc
index 6657a4941083f3bd32ac0bcaee96a1db41c9efab..1d2eac70d7389ef19ff7fced5cab54f496f22fe9 100644
--- a/chrome/browser/storage/durable_storage_permission_infobar_delegate.cc
+++ b/chrome/browser/storage/durable_storage_permission_infobar_delegate.cc
@@ -16,25 +16,23 @@
// static
infobars::InfoBar* DurableStoragePermissionInfoBarDelegate::Create(
InfoBarService* infobar_service,
- PermissionQueueController* controller,
- const PermissionRequestID& id,
const GURL& requesting_frame,
const std::string& display_languages,
- ContentSettingsType type) {
+ ContentSettingsType type,
+ const PermissionSetCallback& callback) {
return infobar_service->AddInfoBar(
infobar_service->CreateConfirmInfoBar(scoped_ptr<ConfirmInfoBarDelegate>(
new DurableStoragePermissionInfoBarDelegate(
- controller, id, requesting_frame, display_languages, type))));
+ requesting_frame, display_languages, type, callback))));
}
DurableStoragePermissionInfoBarDelegate::
DurableStoragePermissionInfoBarDelegate(
- PermissionQueueController* controller,
- const PermissionRequestID& id,
const GURL& requesting_frame,
const std::string& display_languages,
- ContentSettingsType type)
- : PermissionInfobarDelegate(controller, id, requesting_frame, type),
+ ContentSettingsType type,
+ const PermissionSetCallback& callback)
+ : PermissionInfobarDelegate(requesting_frame, type, callback),
requesting_frame_(requesting_frame),
display_languages_(display_languages) {
}
« no previous file with comments | « chrome/browser/storage/durable_storage_permission_infobar_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698