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

Unified Diff: components/infobars/core/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
« no previous file with comments | « components/infobars/core/BUILD.gn ('k') | components/infobars/core/simple_alert_infobar_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/infobars/core/simple_alert_infobar_delegate.h
diff --git a/chrome/browser/infobars/simple_alert_infobar_delegate.h b/components/infobars/core/simple_alert_infobar_delegate.h
similarity index 74%
rename from chrome/browser/infobars/simple_alert_infobar_delegate.h
rename to components/infobars/core/simple_alert_infobar_delegate.h
index d25ab50bcfbc4cd9dbd84884dc1d436fa2f6b388..4ec42d66a62648dbbbec3f5c1cb3db3747a65b3a 100644
--- a/chrome/browser/infobars/simple_alert_infobar_delegate.h
+++ b/components/infobars/core/simple_alert_infobar_delegate.h
@@ -2,22 +2,24 @@
// 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_
+#ifndef COMPONENTS_INFOBARS_CORE_SIMPLE_ALERT_INFOBAR_DELEGATE_H_
+#define COMPONENTS_INFOBARS_CORE_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;
+namespace infobars {
+class InfoBarManager;
+}
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.
+ // |infobar_manager|. |icon_id| may be kNoIconID if no icon is shown.
+ static void Create(infobars::InfoBarManager* infobar_manager,
+ int icon_id,
const base::string16& message,
bool auto_expire);
@@ -40,4 +42,4 @@ class SimpleAlertInfoBarDelegate : public ConfirmInfoBarDelegate {
DISALLOW_COPY_AND_ASSIGN(SimpleAlertInfoBarDelegate);
};
-#endif // CHROME_BROWSER_INFOBARS_SIMPLE_ALERT_INFOBAR_DELEGATE_H_
+#endif // COMPONENTS_INFOBARS_CORE_SIMPLE_ALERT_INFOBAR_DELEGATE_H_
« no previous file with comments | « components/infobars/core/BUILD.gn ('k') | components/infobars/core/simple_alert_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698