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

Unified Diff: chrome/browser/extensions/theme_installed_infobar_delegate.h

Issue 1599038: Revert 44885 - Select and close previous theme info bars when resetting to de... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 8 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/extensions/theme_installed_infobar_delegate.h
===================================================================
--- chrome/browser/extensions/theme_installed_infobar_delegate.h (revision 44885)
+++ chrome/browser/extensions/theme_installed_infobar_delegate.h (working copy)
@@ -6,7 +6,6 @@
#define CHROME_BROWSER_EXTENSIONS_THEME_INSTALLED_INFOBAR_DELEGATE_H_
#include "chrome/browser/tab_contents/infobar_delegate.h"
-#include "chrome/common/notification_registrar.h"
class Extension;
class SkBitmap;
@@ -14,8 +13,7 @@
// When a user installs a theme, we display it immediately, but provide an
// infobar allowing them to cancel.
-class ThemeInstalledInfoBarDelegate : public ConfirmInfoBarDelegate,
- public NotificationObserver {
+class ThemeInstalledInfoBarDelegate : public ConfirmInfoBarDelegate {
public:
ThemeInstalledInfoBarDelegate(TabContents* tab_contents,
const Extension* new_theme,
@@ -30,30 +28,15 @@
ConfirmInfoBarDelegate::InfoBarButton button) const;
virtual bool Cancel();
- // NotificationObserver implementation.
- virtual void Observe(NotificationType type,
- const NotificationSource& source,
- const NotificationDetails& details);
protected:
Profile* profile() { return profile_; }
private:
Profile* profile_;
-
// Name of theme that's just been installed.
std::string name_;
-
- // ID of theme that's just been installed.
- std::string theme_id_;
-
// Used to undo theme install.
std::string previous_theme_id_;
-
- // Tab to which this info bar is associated.
- TabContents* tab_contents_;
-
- // Registers and unregisters us for notifications.
- NotificationRegistrar registrar_;
};
#endif // CHROME_BROWSER_EXTENSIONS_THEME_INSTALLED_INFOBAR_DELEGATE_H_
« no previous file with comments | « chrome/browser/automation/automation_provider.cc ('k') | chrome/browser/extensions/theme_installed_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698