Index: chrome/browser/ui/page_info/page_info_infobar_delegate.cc |
diff --git a/chrome/browser/ui/page_info/website_settings_infobar_delegate.cc b/chrome/browser/ui/page_info/page_info_infobar_delegate.cc |
similarity index 50% |
rename from chrome/browser/ui/page_info/website_settings_infobar_delegate.cc |
rename to chrome/browser/ui/page_info/page_info_infobar_delegate.cc |
index 04beadcaa10898e7345fb2e418c7829898ab5819..22427cd8cbbec024b6cecd5a2375f28c3ecdfbe1 100644 |
--- a/chrome/browser/ui/page_info/website_settings_infobar_delegate.cc |
+++ b/chrome/browser/ui/page_info/page_info_infobar_delegate.cc |
@@ -2,7 +2,7 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "chrome/browser/ui/page_info/website_settings_infobar_delegate.h" |
+#include "chrome/browser/ui/page_info/page_info_infobar_delegate.h" |
#include "base/logging.h" |
#include "base/strings/utf_string_conversions.h" |
@@ -16,46 +16,44 @@ |
#include "ui/base/l10n/l10n_util.h" |
// static |
-void WebsiteSettingsInfoBarDelegate::Create(InfoBarService* infobar_service) { |
+void PageInfoInfoBarDelegate::Create(InfoBarService* infobar_service) { |
infobar_service->AddInfoBar(infobar_service->CreateConfirmInfoBar( |
- std::unique_ptr<ConfirmInfoBarDelegate>( |
- new WebsiteSettingsInfoBarDelegate()))); |
+ std::unique_ptr<ConfirmInfoBarDelegate>(new PageInfoInfoBarDelegate()))); |
} |
-WebsiteSettingsInfoBarDelegate::WebsiteSettingsInfoBarDelegate() |
- : ConfirmInfoBarDelegate() {} |
+PageInfoInfoBarDelegate::PageInfoInfoBarDelegate() : ConfirmInfoBarDelegate() {} |
-WebsiteSettingsInfoBarDelegate::~WebsiteSettingsInfoBarDelegate() {} |
+PageInfoInfoBarDelegate::~PageInfoInfoBarDelegate() {} |
-infobars::InfoBarDelegate::Type WebsiteSettingsInfoBarDelegate::GetInfoBarType() |
+infobars::InfoBarDelegate::Type PageInfoInfoBarDelegate::GetInfoBarType() |
const { |
return PAGE_ACTION_TYPE; |
} |
infobars::InfoBarDelegate::InfoBarIdentifier |
-WebsiteSettingsInfoBarDelegate::GetIdentifier() const { |
- return WEBSITE_SETTINGS_INFOBAR_DELEGATE; |
+PageInfoInfoBarDelegate::GetIdentifier() const { |
+ return PAGE_INFO_INFOBAR_DELEGATE; |
} |
-const gfx::VectorIcon& WebsiteSettingsInfoBarDelegate::GetVectorIcon() const { |
+const gfx::VectorIcon& PageInfoInfoBarDelegate::GetVectorIcon() const { |
return kGlobeIcon; |
} |
-base::string16 WebsiteSettingsInfoBarDelegate::GetMessageText() const { |
- return l10n_util::GetStringUTF16(IDS_WEBSITE_SETTINGS_INFOBAR_TEXT); |
+base::string16 PageInfoInfoBarDelegate::GetMessageText() const { |
+ return l10n_util::GetStringUTF16(IDS_PAGE_INFO_INFOBAR_TEXT); |
} |
-int WebsiteSettingsInfoBarDelegate::GetButtons() const { |
+int PageInfoInfoBarDelegate::GetButtons() const { |
return BUTTON_OK; |
} |
-base::string16 WebsiteSettingsInfoBarDelegate::GetButtonLabel( |
+base::string16 PageInfoInfoBarDelegate::GetButtonLabel( |
InfoBarButton button) const { |
DCHECK_EQ(BUTTON_OK, button); |
- return l10n_util::GetStringUTF16(IDS_WEBSITE_SETTINGS_INFOBAR_BUTTON); |
+ return l10n_util::GetStringUTF16(IDS_PAGE_INFO_INFOBAR_BUTTON); |
} |
-bool WebsiteSettingsInfoBarDelegate::Accept() { |
+bool PageInfoInfoBarDelegate::Accept() { |
content::WebContents* web_contents = |
InfoBarService::WebContentsFromInfoBar(infobar()); |
web_contents->GetController().Reload(content::ReloadType::NORMAL, true); |