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

Unified Diff: chrome/browser/media/protected_media_identifier_infobar_delegate.cc

Issue 922953002: Minor infobar cleanup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resync Created 5 years, 10 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/media/protected_media_identifier_infobar_delegate.cc
diff --git a/chrome/browser/media/protected_media_identifier_infobar_delegate.cc b/chrome/browser/media/protected_media_identifier_infobar_delegate.cc
index 673fd1790e4faece1db64f8c9e148ffc5afa82f3..398d17b5931643d390e90fa89bcab31b1e04e0f0 100644
--- a/chrome/browser/media/protected_media_identifier_infobar_delegate.cc
+++ b/chrome/browser/media/protected_media_identifier_infobar_delegate.cc
@@ -78,10 +78,6 @@ void ProtectedMediaIdentifierInfoBarDelegate::InfoBarDismissed() {
SetPermission(false, false);
}
-int ProtectedMediaIdentifierInfoBarDelegate::GetIconID() const {
- return IDR_INFOBAR_PROTECTED_MEDIA_IDENTIFIER;
-}
-
infobars::InfoBarDelegate::Type
ProtectedMediaIdentifierInfoBarDelegate::GetInfoBarType() const {
return PAGE_ACTION_TYPE;
@@ -95,6 +91,10 @@ bool ProtectedMediaIdentifierInfoBarDelegate::ShouldExpireInternal(
return (contents_unique_id_ != details.entry_id) || details.is_reload;
}
+int ProtectedMediaIdentifierInfoBarDelegate::GetIconID() const {
+ return IDR_INFOBAR_PROTECTED_MEDIA_IDENTIFIER;
+}
+
base::string16 ProtectedMediaIdentifierInfoBarDelegate::GetMessageText() const {
return l10n_util::GetStringFUTF16(
IDS_PROTECTED_MEDIA_IDENTIFIER_INFOBAR_QUESTION,

Powered by Google App Engine
This is Rietveld 408576698