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

Unified Diff: chrome/browser/tab_contents/simple_alert_infobar_delegate.cc

Issue 10843071: Create chrome/browser/api directory. Move infobar delegates used by Autofill to the directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments. Created 8 years, 4 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/tab_contents/simple_alert_infobar_delegate.cc
diff --git a/chrome/browser/tab_contents/simple_alert_infobar_delegate.cc b/chrome/browser/tab_contents/simple_alert_infobar_delegate.cc
deleted file mode 100644
index bc7008e568651a99cac22876400b52f4d31e25db..0000000000000000000000000000000000000000
--- a/chrome/browser/tab_contents/simple_alert_infobar_delegate.cc
+++ /dev/null
@@ -1,38 +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/tab_contents/simple_alert_infobar_delegate.h"
-
-#include "third_party/skia/include/core/SkBitmap.h"
-
-SimpleAlertInfoBarDelegate::SimpleAlertInfoBarDelegate(
- InfoBarTabHelper* infobar_helper,
- gfx::Image* icon,
- const string16& message,
- bool auto_expire)
- : ConfirmInfoBarDelegate(infobar_helper),
- icon_(icon),
- message_(message),
- auto_expire_(auto_expire) {
-}
-
-SimpleAlertInfoBarDelegate::~SimpleAlertInfoBarDelegate() {
-}
-
-gfx::Image* SimpleAlertInfoBarDelegate::GetIcon() const {
- return icon_;
-}
-
-string16 SimpleAlertInfoBarDelegate::GetMessageText() const {
- return message_;
-}
-
-int SimpleAlertInfoBarDelegate::GetButtons() const {
- return BUTTON_NONE;
-}
-
-bool SimpleAlertInfoBarDelegate::ShouldExpireInternal(
- const content::LoadCommittedDetails& details) const {
- return auto_expire_ && ConfirmInfoBarDelegate::ShouldExpireInternal(details);
-}
« no previous file with comments | « chrome/browser/tab_contents/simple_alert_infobar_delegate.h ('k') | chrome/browser/tab_contents/tab_contents_ssl_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698