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

Unified Diff: chrome/browser/ui/website_settings/website_settings_infobar_delegate.cc

Issue 2744823004: Move cross-platform Page Info UI code to its own folder. (Closed)
Patch Set: Update test build file with changes not caught by mass-rename.py Created 3 years, 9 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/ui/website_settings/website_settings_infobar_delegate.cc
diff --git a/chrome/browser/ui/website_settings/website_settings_infobar_delegate.cc b/chrome/browser/ui/website_settings/website_settings_infobar_delegate.cc
deleted file mode 100644
index 3602b7d4a171ea68b05fb7e808e46ff407fe2779..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/website_settings/website_settings_infobar_delegate.cc
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/ui/website_settings/website_settings_infobar_delegate.h"
-
-#include "base/logging.h"
-#include "base/strings/utf_string_conversions.h"
-#include "build/build_config.h"
-#include "chrome/app/vector_icons/vector_icons.h"
-#include "chrome/browser/infobars/infobar_service.h"
-#include "chrome/grit/generated_resources.h"
-#include "chrome/grit/theme_resources.h"
-#include "components/infobars/core/infobar.h"
-#include "content/public/browser/web_contents.h"
-#include "ui/base/l10n/l10n_util.h"
-
-// static
-void WebsiteSettingsInfoBarDelegate::Create(InfoBarService* infobar_service) {
- infobar_service->AddInfoBar(infobar_service->CreateConfirmInfoBar(
- std::unique_ptr<ConfirmInfoBarDelegate>(
- new WebsiteSettingsInfoBarDelegate())));
-}
-
-WebsiteSettingsInfoBarDelegate::WebsiteSettingsInfoBarDelegate()
- : ConfirmInfoBarDelegate() {
-}
-
-WebsiteSettingsInfoBarDelegate::~WebsiteSettingsInfoBarDelegate() {
-}
-
-infobars::InfoBarDelegate::Type
-WebsiteSettingsInfoBarDelegate::GetInfoBarType() const {
- return PAGE_ACTION_TYPE;
-}
-
-infobars::InfoBarDelegate::InfoBarIdentifier
-WebsiteSettingsInfoBarDelegate::GetIdentifier() const {
- return WEBSITE_SETTINGS_INFOBAR_DELEGATE;
-}
-
-const gfx::VectorIcon& WebsiteSettingsInfoBarDelegate::GetVectorIcon() const {
- return kGlobeIcon;
-}
-
-base::string16 WebsiteSettingsInfoBarDelegate::GetMessageText() const {
- return l10n_util::GetStringUTF16(IDS_WEBSITE_SETTINGS_INFOBAR_TEXT);
-}
-
-int WebsiteSettingsInfoBarDelegate::GetButtons() const {
- return BUTTON_OK;
-}
-
-base::string16 WebsiteSettingsInfoBarDelegate::GetButtonLabel(
- InfoBarButton button) const {
- DCHECK_EQ(BUTTON_OK, button);
- return l10n_util::GetStringUTF16(IDS_WEBSITE_SETTINGS_INFOBAR_BUTTON);
-}
-
-bool WebsiteSettingsInfoBarDelegate::Accept() {
- content::WebContents* web_contents =
- InfoBarService::WebContentsFromInfoBar(infobar());
- web_contents->GetController().Reload(content::ReloadType::NORMAL, true);
- return true;
-}

Powered by Google App Engine
This is Rietveld 408576698