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

Unified Diff: chrome/browser/services/gcm/push_messaging_infobar_delegate.cc

Issue 371933002: Add UMA for the new generic permisison class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/services/gcm/push_messaging_infobar_delegate.cc
diff --git a/chrome/browser/services/gcm/push_messaging_infobar_delegate.cc b/chrome/browser/services/gcm/push_messaging_infobar_delegate.cc
index 454cb64130f0c55f53d7cbc07ca39cfac9e53330..68a3978c793d1ef696cb01e93bce4b16c34f8d0f 100644
--- a/chrome/browser/services/gcm/push_messaging_infobar_delegate.cc
+++ b/chrome/browser/services/gcm/push_messaging_infobar_delegate.cc
@@ -18,20 +18,22 @@ infobars::InfoBar* PushMessagingInfoBarDelegate::Create(
PermissionQueueController* controller,
const PermissionRequestID& id,
const GURL& requesting_frame,
- const std::string& display_languages) {
+ const std::string& display_languages,
+ ContentSettingsType type) {
DCHECK(infobar_service);
DCHECK(controller);
return infobar_service->AddInfoBar(ConfirmInfoBarDelegate::CreateInfoBar(
scoped_ptr<ConfirmInfoBarDelegate>(new PushMessagingInfoBarDelegate(
- controller, id, requesting_frame, display_languages))));
+ controller, id, requesting_frame, display_languages, type))));
}
PushMessagingInfoBarDelegate::PushMessagingInfoBarDelegate(
PermissionQueueController* controller,
const PermissionRequestID& id,
const GURL& requesting_frame,
- const std::string& display_languages)
- : PermissionInfobarDelegate(controller, id, requesting_frame),
+ const std::string& display_languages,
+ ContentSettingsType type)
+ : PermissionInfobarDelegate(controller, id, requesting_frame, type),
requesting_origin_(requesting_frame.GetOrigin()),
display_languages_(display_languages) {
}

Powered by Google App Engine
This is Rietveld 408576698