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

Unified Diff: chrome/browser/infobars/simple_alert_infobar_delegate.h

Issue 824033002: Componentize SimpleAlertInfoBarDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 6 years 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/infobars/simple_alert_infobar_delegate.h
diff --git a/chrome/browser/infobars/simple_alert_infobar_delegate.h b/chrome/browser/infobars/simple_alert_infobar_delegate.h
deleted file mode 100644
index d25ab50bcfbc4cd9dbd84884dc1d436fa2f6b388..0000000000000000000000000000000000000000
--- a/chrome/browser/infobars/simple_alert_infobar_delegate.h
+++ /dev/null
@@ -1,43 +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.
-
-#ifndef CHROME_BROWSER_INFOBARS_SIMPLE_ALERT_INFOBAR_DELEGATE_H_
-#define CHROME_BROWSER_INFOBARS_SIMPLE_ALERT_INFOBAR_DELEGATE_H_
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "base/strings/string16.h"
-#include "components/infobars/core/confirm_infobar_delegate.h"
-
-class InfoBarService;
-
-class SimpleAlertInfoBarDelegate : public ConfirmInfoBarDelegate {
- public:
- // Creates a simple alert infobar and delegate and adds the infobar to
- // |infobar_service|.
- static void Create(InfoBarService* infobar_service,
- int icon_id, // May be |kNoIconID| if no icon is shown.
- const base::string16& message,
- bool auto_expire);
-
- private:
- SimpleAlertInfoBarDelegate(int icon_id,
- const base::string16& message,
- bool auto_expire);
- ~SimpleAlertInfoBarDelegate() override;
-
- // ConfirmInfoBarDelegate:
- int GetIconID() const override;
- base::string16 GetMessageText() const override;
- int GetButtons() const override;
- bool ShouldExpireInternal(const NavigationDetails& details) const override;
-
- const int icon_id_;
- base::string16 message_;
- bool auto_expire_; // Should it expire automatically on navigation?
-
- DISALLOW_COPY_AND_ASSIGN(SimpleAlertInfoBarDelegate);
-};
-
-#endif // CHROME_BROWSER_INFOBARS_SIMPLE_ALERT_INFOBAR_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698