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

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

Issue 164312: Make the theme install infobar have an 'undo' button instead of (Closed)
Patch Set: Created 11 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/extensions/theme_preview_infobar_delegate.h
diff --git a/chrome/browser/extensions/theme_preview_infobar_delegate.h b/chrome/browser/extensions/theme_preview_infobar_delegate.h
index dcc34b661b7848287246283caa7f6b3960b7c14d..9b214bbefd39c27586cf912eb079abc406825c56 100644
--- a/chrome/browser/extensions/theme_preview_infobar_delegate.h
+++ b/chrome/browser/extensions/theme_preview_infobar_delegate.h
@@ -7,8 +7,6 @@
#include "chrome/browser/tab_contents/infobar_delegate.h"
-class Extension;
-class ExtensionsService;
class SkBitmap;
class TabContents;
@@ -20,7 +18,8 @@ class TabContents;
class ThemePreviewInfobarDelegate : public ConfirmInfoBarDelegate {
public:
ThemePreviewInfobarDelegate(TabContents* tab_contents,
- const std::string& name);
+ const std::string& name,
+ const std::string& previous_theme);
virtual void InfoBarClosed();
virtual std::wstring GetMessageText() const;
virtual SkBitmap* GetIcon() const;
@@ -33,6 +32,7 @@ class ThemePreviewInfobarDelegate : public ConfirmInfoBarDelegate {
private:
Profile* profile_;
std::string name_; // name of theme to install
+ std::string previous_theme_id_; // used to undo theme install
};
#endif // CHROME_BROWSER_VIEWS_EXTENSIONS_THEME_PREVIEW_INFOBAR_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698